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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yucheng Wang
May 18, 2015
Technology
73
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
230
使用 ManageWP 來管理網站
ucheng
0
420
提升你的古騰堡編輯體驗 - EditorsKit 介紹
ucheng
0
320
使用 ProjectHuddle 來管理客戶需求和回饋
ucheng
3
430
網站客製化、除錯的好幫手 - Chrome Developer Tools 基本介紹
ucheng
0
1k
基本網站安全防護
ucheng
1
150
使用 ACF Pro 打造客製化古騰堡區塊
ucheng
1
560
使用 Admin Menu Editor 打造簡單易用的後台
ucheng
0
210
Other Decks in Technology
See All in Technology
2026TECHFRESH畢業分享會 - Lightning Talk - E起 See See : 電商推薦讀心術? 數據說了算
line_developers_tw
PRO
0
800
Djangoユーザが知っ得なPostgreSQL機能 - 設計の選択肢を増やす / Djang-use-PostgreSQL
soudai
PRO
1
230
[モダンアプリ勉強会]今更聞けないGit/GitHub入門
tsukuboshi
0
370
小さく始める AI 活用推進 ― 日経電子版 Web チームの事例/nikkei-tech-talk47
nikkei_engineer_recruiting
0
220
【Cyber-sec+】経営層を"動かす"ための考え方
hssh2_bin
0
130
LLMにもCAP定理があるという話
harukasakihara
0
300
ポケモンの型をTypeScriptの型システムで表現してみた
subroh0508
0
370
なぜ Platform Engineering の土台に Kubernetes を選ぶのか
r4ynode
2
590
Kubernetesにおける学習基盤とLLMOpsの概要
ry
1
250
自宅LLMの話
jacopen
1
270
2026TECHFRESH畢業分享會 - 葬送的通靈師:化系統與用戶雜訊成行動訊號
line_developers_tw
PRO
0
800
脆弱性対応、どこで線を引くか
rymiyamoto
0
370
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
200
The Limits of Empathy - UXLibs8
cassininazir
1
350
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
400
Building the Perfect Custom Keyboard
takai
2
790
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
140
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
200
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
230
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
230
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
410
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