Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
60
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
390
使用 Gutenberg 和 ACF Block 重新建置網站
ucheng
0
190
使用 ManageWP 來管理網站
ucheng
0
370
提升你的古騰堡編輯體驗 - EditorsKit 介紹
ucheng
0
270
使用 ProjectHuddle 來管理客戶需求和回饋
ucheng
3
370
網站客製化、除錯的好幫手 - Chrome Developer Tools 基本介紹
ucheng
0
970
基本網站安全防護
ucheng
1
130
使用 ACF Pro 打造客製化古騰堡區塊
ucheng
1
500
使用 Admin Menu Editor 打造簡單易用的後台
ucheng
0
180
Other Decks in Technology
See All in Technology
OpenShiftのBGPサポート - MetalLB+FRR-k8s編
orimanabu
0
140
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
0
640
.NET 10 のパフォーマンス改善
nenonaninu
2
4.5k
“決まらない”NSM設計への処方箋 〜ビットキーにおける現実的な指標デザイン事例〜 / A Prescription for "Stuck" NSM Design: Bitkey’s Practical Case Study
bitkey
PRO
0
170
その設計、 本当に価値を生んでますか?
shimomura
2
150
なぜ使われないのか?──定量×定性で見極める本当のボトルネック
kakehashi
PRO
1
430
Product Engineer
resilire
0
130
ブラウザ拡張のセキュリティの話 / Browser Extension Security
flatt_security
0
250
How native lazy objects will change Doctrine and Symfony forever
beberlei
1
360
Modern Data Stack大好きマンが語るSnowflakeの魅力
sagara
0
260
[続・営業向け 誰でも話せるOCI セールストーク] AWSよりOCIの優位性が分からない編(2025年11月21日開催)
oracle4engineer
PRO
1
220
MAP-7thplaceSolution
yukichi0403
2
240
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
Music & Morning Musume
bryan
46
7k
4 Signs Your Business is Dying
shpigford
186
22k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8k
Building Applications with DynamoDB
mza
96
6.8k
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