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
64
0
Share
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
420
使用 Gutenberg 和 ACF Block 重新建置網站
ucheng
0
220
使用 ManageWP 來管理網站
ucheng
0
390
提升你的古騰堡編輯體驗 - EditorsKit 介紹
ucheng
0
280
使用 ProjectHuddle 來管理客戶需求和回饋
ucheng
3
390
網站客製化、除錯的好幫手 - Chrome Developer Tools 基本介紹
ucheng
0
1k
基本網站安全防護
ucheng
1
150
使用 ACF Pro 打造客製化古騰堡區塊
ucheng
1
530
使用 Admin Menu Editor 打造簡單易用的後台
ucheng
0
200
Other Decks in Technology
See All in Technology
バックオフィスPJのPjMをコーポレートITが担うとうまくいく3つの理由
yueda256
1
270
最大のアウトプット術は問題を作ること
ryoaccount
0
300
互換性のある(らしい)DBへの移行など考えるにあたってたいへんざっくり
sejima
PRO
0
550
GitHub Advanced Security × Defender for Cloudで開発とSecOpsのサイロを超える: コードとクラウドをつなぐ、開発プラットフォームのセキュリティ
yuriemori
1
130
Webアクセシビリティは“もしも”に備える設計
tomokusaba
0
160
Goビルドを理解し、 CI/CDの高速化に挑む
satoshin
0
120
Tour of Agent Protocols: MCP, A2A, AG-UI, A2UI with ADK
meteatamel
0
200
Data Enabling Team立ち上げました
sansantech
PRO
0
270
あるアーキテクチャ決定と その結果/architecture-decision-and-its-result
hanhan1978
0
280
VSCode中心だった自分がターミナル沼に入門した話
sanogemaru
0
920
TUNA Camp 2026 京都Stage ヒューリスティックアルゴリズム入門
terryu16
0
670
20260326_AIDD事例紹介_ULSC.pdf
findy_eventslides
0
520
Featured
See All Featured
Between Models and Reality
mayunak
3
260
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Deep Space Network (abreviated)
tonyrice
0
100
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
Color Theory Basics | Prateek | Gurzu
gurzu
0
280
Claude Code のすすめ
schroneko
67
220k
Ethics towards AI in product and experience design
skipperchong
2
250
Are puppies a ranking factor?
jonoalderson
1
3.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
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