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
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
400
提升你的古騰堡編輯體驗 - EditorsKit 介紹
ucheng
0
290
使用 ProjectHuddle 來管理客戶需求和回饋
ucheng
3
400
網站客製化、除錯的好幫手 - Chrome Developer Tools 基本介紹
ucheng
0
1k
基本網站安全防護
ucheng
1
150
使用 ACF Pro 打造客製化古騰堡區塊
ucheng
1
540
使用 Admin Menu Editor 打造簡單易用的後台
ucheng
0
200
Other Decks in Technology
See All in Technology
AI時代における技術的負債への取り組み
codenote
1
1.7k
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
160
スクラムの中で AI-DLC workflow を 使い始めて3ヶ月の振り返り
kaminashi
0
130
EMから幅を広げるために最近挑戦していること / Recent challenges I'm undertaking to expand my horizons beyond EM
hiro_torii
1
120
AndroidアプリとCopilot Studioの統合
nakasho
0
120
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
320
Microsoft 365 / Microsoft 365 Copilot : 自分の状態を確認する「ラベル」について
taichinakamura
0
350
The Journey of Box Building
tagomoris
4
3.4k
PicoRuby as a Multi-VM Operating System
kishima
1
210
AWS DevOps Agentはチームメイトになれるのか?/ Can AWS DevOps Agent become a teammate
kinunori
6
770
Route 53 Global Resolver で高額課金発生!
otanikohei2023
0
120
AzureのIaC管理からログ調査まで、随所に役立つSkillsとCustom-Instructions / Boosting IaC and Log Analysis with Skills
aeonpeople
0
260
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
220
Everyday Curiosity
cassininazir
0
200
How to build a perfect <img>
jonoalderson
1
5.4k
We Are The Robots
honzajavorek
0
220
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
エンジニアに許された特別な時間の終わり
watany
106
240k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
510
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.7k
Building Adaptive Systems
keathley
44
3k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
200
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
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