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
Heroku - Git Push Deploy
Search
Yucheng Wang
May 18, 2015
Technology
0
48
Heroku - Git Push Deploy
Learn more about Heroku
Yucheng Wang
May 18, 2015
Tweet
Share
More Decks by Yucheng Wang
See All by Yucheng Wang
不會寫程式也可以 - 使用 Elementor + ACF 來客製化網站
ucheng
0
290
使用 Gutenberg 和 ACF Block 重新建置網站
ucheng
0
89
使用 ManageWP 來管理網站
ucheng
0
260
提升你的古騰堡編輯體驗 - EditorsKit 介紹
ucheng
0
200
使用 ProjectHuddle 來管理客戶需求和回饋
ucheng
3
290
網站客製化、除錯的好幫手 - Chrome Developer Tools 基本介紹
ucheng
0
870
基本網站安全防護
ucheng
1
81
使用 ACF Pro 打造客製化古騰堡區塊
ucheng
1
360
使用 Admin Menu Editor 打造簡單易用的後台
ucheng
0
120
Other Decks in Technology
See All in Technology
家族アルバム みてねにおけるGrafana活用術 / Grafana Meetup Japan Vol.1 LT
isaoshimizu
1
740
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
290
Kernel MemoryでAzure OpenAI Serviceとお手軽データソース連携
mitsuzono
1
250
Postman v10リリース後を振り返る / Looking back at Postman v10 after release
yokawasa
1
160
FrontDoorとWebAppsを組み合わせた際のリダイレクト処理の注意点
kenichirokimura
1
520
非同期推論システムによるコスト削減と信頼性向上
koki_nishihara
0
260
生産性向上チームの紹介
cybozuinsideout
PRO
1
870
本当のAWS基礎
toru_kubota
0
520
Janus
bkuhlmann
1
490
LLM開発・活用の舞台裏@2024.04.25
yushin_n
1
270
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
120
ゼロから始めるVue.jsコミュニティ貢献 / first-vuejs-community-contribution-link-and-motivation
lmi
1
130
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
36
2.1k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
Clear Off the Table
cherdarchuk
84
310k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Code Review Best Practice
trishagee
55
15k
The Language of Interfaces
destraynor
151
23k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
357
22k
Raft: Consensus for Rubyists
vanstee
132
6.3k
Writing Fast Ruby
sferik
621
60k
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Transcript
git push deploy PaaS TW Meetup #2 /her-OH-koo/
! PHP / WordPress Developer Rails newbie @uchengwang Ԧ₮ఔ Wang
Yu-Cheng http://spectator.do
How Heroku Works Twelve-Factor App
Get Start 1.Sign up 2.Install the Heroku Toolbelt 3.Create your
app
heroku local git push slug compiler slug launch dyno dyno
scale scale … stack stack Creative Commons – Attribution (CC BY 3.0) Box designed by Nono Martínez Alonso from the Noun Project compiled
None
Stack OS(ubuntu) language runtime libraries Buildpack config
None
You can run anything!
dyno • Isolated • Self-healing • Read-only • Stateless •
Recycle every 24hrs
Twelve-Factor App http://12factor.net scalability portability productivity
One codebase tracked in revision control, many deploys. I. Codebase
One codebase, one app
Explicitly declare and isolate dependencies II. Dependencies Gemfile =>dependency declaration
Bundle exec => dependency isolation
III. Config Store config in the environment An app’s config
is everything that is likely to vary between deploys (staging, production, developer environments, etc). Don’t check in to the codebase
IV. Backing Services Treat backing services as attached resources
IV. Backing Services con’t
V. Build, release, run Strictly separate build and run stages
VI. Processes stateless processes share-nothing processes
VII. Port binding Export services via port binding Containerless Add
web server by dependency declaration
VIII. Concurrency Scale out via the process model
IX. Disposability Fast startup Graceful shutdown
XI. Logs Treat logs as event streams Write logs to
file
X. Dev/prod parity Development = Staging = Production Time gap
Personal gap Tool gap Design for continuous deployment
XII. Admin processes Run admin/management tasks as one-off processes bundle
exec rake db:migrate
How about Docker?
Docker Heroku dockerfile buildpack image slug container dyno docker client
heroku client docker registry add-on http://tuhrig.de/docker-vs-heroku/
https://github.com/progrium/dokku
Spectator.do ಜࢹਓ http://spectator.do
None
Thanks for Listening @uchengwang http://spectator.do PaaS TW Meetup #2