Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node.jsによるWebサイト制作のデプロイ環境構築
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
takanorip
April 07, 2017
Technology
0
390
Node.jsによるWebサイト制作のデプロイ環境構築
takanorip
April 07, 2017
Tweet
Share
More Decks by takanorip
See All by takanorip
Design System Documentation Tooling 2025
takanorip
3
2.3k
デザインエンジニアの延長にデザインマネージャーとしての可能性を探る
takanorip
1
900
Tools for Design Engineers other than LLM in the LLM era
takanorip
1
650
Bulletproof Design System with TypeScript
takanorip
7
4.7k
Eleventy3.0 で始める爆速個人ブログ開発!
takanorip
0
250
Webフォント選定の極意!フォントの基本から最新トレンドまで徹底解説
takanorip
5
1k
効果的な管理画面を デザインをするために 避けるべき5つの罠
takanorip
15
7.7k
社内管理画面のデザインもプロダクトデザイン
takanorip
5
2.2k
早わかり W3C Community Group
takanorip
0
550
Other Decks in Technology
See All in Technology
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
480
Red Hat OpenStack Services on OpenShift
tamemiya
0
140
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
130
【Ubie】AIを活用した広告アセット「爆速」生成事例 | AI_Ops_Community_Vol.2
yoshiki_0316
1
120
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
520
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
770
pool.ntp.orgに ⾃宅サーバーで 参加してみたら...
tanyorg
0
1.4k
SchooでVue.js/Nuxtを技術選定している理由
yamanoku
3
210
Cosmos World Foundation Model Platform for Physical AI
takmin
0
980
Context Engineeringの取り組み
nutslove
0
380
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.6k
Tebiki Engineering Team Deck
tebiki
0
24k
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
2.3M
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
67
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Navigating Team Friction
lara
192
16k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
260
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
96
Scaling GitHub
holman
464
140k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
150
Accessibility Awareness
sabderemane
0
58
4 Signs Your Business is Dying
shpigford
187
22k
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 ศར • ϑϩϯτΤϯυ։ൃͰ؆୯ʹσϓϩΠڥ ΛߏஙͰ͖ͨ • ͬͱ͍ΖΜͳ͍ํΛࡧ͍͖͍ͯͨ͠