Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Node.jsによるWebサイト制作のデプロイ環境構築
Search
takanorip
April 07, 2017
Technology
400
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Node.jsによるWebサイト制作のデプロイ環境構築
takanorip
April 07, 2017
More Decks by takanorip
See All by takanorip
今さら理解するウェブフォントver.2026
takanorip
3
710
AI-Slopなデザインを生まないためのデザインプロセス戦略
takanorip
10
6.3k
「見せる」登壇資料デザインの極意
takanorip
7
1.8k
Design System Documentation Tooling 2025
takanorip
3
3.1k
デザインエンジニアの延長にデザインマネージャーとしての可能性を探る
takanorip
1
1.4k
Tools for Design Engineers other than LLM in the LLM era
takanorip
1
920
Bulletproof Design System with TypeScript
takanorip
7
5.4k
Eleventy3.0 で始める爆速個人ブログ開発!
takanorip
0
320
Webフォント選定の極意!フォントの基本から最新トレンドまで徹底解説
takanorip
6
1.2k
Other Decks in Technology
See All in Technology
DWH の限界突破! AI エージェント向け爆速リアルタイムデータ基盤 ClickHouse
jozono
1
460
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
go-sqletch
moznion
0
140
会社説明資料
persolserverworks
0
9.8k
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
850
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
160
Optunaの最新リリースv5.0について
pfn
PRO
0
110
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
130
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
160
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
190
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Test your architecture with Archunit
thirion
2
2.4k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Transcript
WebαΠτ deployڥͷߏங Takanori Oki @౦ژNodeֶԂೖֶࣜ
࣍ • ࣗݾհ • ֓ཁ • ॲཧͷྲྀΕ • ·ͱΊ
ࣗݾհ
ࣗݾհ • େଚلʢ@takanoripʣ • גࣜձࣾϑΥʔσδοτσβΠϯ • ϑϩϯτΤϯυΤϯδχΞ
֓ཁ
ಈػ • FTPखಈΞοϓϩʔυΊ͍ͨ • ࣗಈԽ͍ͨ͠ • Gulp͍ͨ͘ͳ͍
npm scripts
npm scripts ͱʁ • npmͷύοέʔδ + Shell • λεΫϥϯφʔ •
ϥούʔϓϥάΠϯෆཁ • JavaScript, stylusͷwatch, build, deployͳͲ ͬͯ͘ΕΔ
ෳࡶͳ͜ͱ͕ۤख ↓ ֎෦ϑΝΠϧԽ
ߏ
ߏ ├── package.json ├── scripts/ │ ├── ... │ ├──
build.js │ ├── upload.js │ └── deploy.js ├── htdocs/ (公開ディレクトリ) ├── node_modules/ └── config.js
ߏ • package.json : npmઃఆϑΝΠϧ • deploy.js : build +
upload • build.js : JS, stylusͷbuild • upload.js : SFTPܦ༝ͰαʔόʔʹΞοϓ • config.js : ύεFTPͷใͳͲΛهड़
༻Ϟδϡʔϧ • bluebird : PromiseͷϥΠϒϥϦ • path : ϑΝΠϧύεΛѻ͏Ϟδϡʔϧ •
fs : ϑΝΠϧΞΫηε͢ΔͨΊͷϞδϡʔϧ • ssh2 : SSHଓ͢ΔϞδϡʔϧ
ॲཧͷྲྀΕ
package.json { "scripts": { … "build": "node scripts/build.js", "watch": "node
scripts/watch.js”, "deploy": "node scripts/deploy.js” … }, }
ॲཧͷྲྀΕ 1. ίϯϑΟά͔Βެ։σΟϨΫτϦͷύεऔಘ 2. SFTPଓ 3. ϑΝΠϧΛΞοϓϩʔυ 4. ϑΝΠϧͷଘࡏΛ֬ೝˠͳ͔ͬͨΒσΟϨΫ τϦ࡞Δ
·ͱΊ • npm scripts ศར • ϑϩϯτΤϯυ։ൃͰ؆୯ʹσϓϩΠڥ ΛߏஙͰ͖ͨ • ͬͱ͍ΖΜͳ͍ํΛࡧ͍͖͍ͯͨ͠