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
Heroku - Git Push Deploy
Search
Yucheng Wang
May 18, 2015
Technology
75
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Heroku - Git Push Deploy
Learn more about Heroku
Yucheng Wang
May 18, 2015
More Decks by Yucheng Wang
See All by Yucheng Wang
不會寫程式也可以 - 使用 Elementor + ACF 來客製化網站
ucheng
0
440
使用 Gutenberg 和 ACF Block 重新建置網站
ucheng
0
250
使用 ManageWP 來管理網站
ucheng
0
430
提升你的古騰堡編輯體驗 - EditorsKit 介紹
ucheng
0
330
使用 ProjectHuddle 來管理客戶需求和回饋
ucheng
3
430
網站客製化、除錯的好幫手 - Chrome Developer Tools 基本介紹
ucheng
0
1k
基本網站安全防護
ucheng
1
160
使用 ACF Pro 打造客製化古騰堡區塊
ucheng
1
580
使用 Admin Menu Editor 打造簡單易用的後台
ucheng
0
230
Other Decks in Technology
See All in Technology
Screen Lens - 今見てる画面を翻訳する
komagata
0
260
株式会社シーエーシー エンジニア向け会社紹介資料
cac
0
57k
AI時代の「技術的負債」の変質ー概念の終焉と再解釈、エージェントと共に向かう先
nwiizo
0
980
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
540
AIネイティブプロダクトで顧客価値を最大化するプロダクトエンジニアとFDEの協働
righttouch
PRO
0
260
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
4
1.2k
Code4Lib JAPANカンファレンス2026 開会挨拶 / Code4Lib JAPAN Conference 2026: Opening Remarks
ykiyota
0
350
Claude in Chrome 入門 / Introduction to Claude in Chrome
cielo1985
0
660
安心して変更できるWebフロントエンドの作り方
pirosikick
4
1.9k
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
3
480
作品が生態系になった ─ Mini Tokyo 3D から世界へ
nagix
0
180
omasushiというライブラリを作った
polidog
PRO
0
220
Featured
See All Featured
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
HDC tutorial
michielstock
2
860
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
410
Statistics for Hackers
jakevdp
799
230k
Producing Creativity
orderedlist
PRO
348
41k
Navigating Team Friction
lara
192
16k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
Optimising Largest Contentful Paint
csswizardry
37
4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7k
A Tale of Four Properties
chriscoyier
163
24k
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