heroku - riptutorial.com · 1 1: heroku 2 2 Examples 2 2 2 2 Debian / Ubuntu 2 Heroku Toolbelt 2 2...
Embed Size (px)
Transcript of heroku - riptutorial.com · 1 1: heroku 2 2 Examples 2 2 2 2 Debian / Ubuntu 2 Heroku Toolbelt 2 2...
-
heroku
#heroku
-
1
1: heroku 2
2
Examples 2
2
2
2
Debian / Ubuntu 2
Heroku Toolbelt 2
2
Heroku 2
2
Heroku 2
3
3
Heroku 3
2: Buildpack 4
Examples 4
Buildpacks 4
buildpack 4
3: Heroku node.js Hello World 5
5
Examples 5
Heroku node.js 5
4: Heroku Postgres 7
Examples 7
HerokuPostgres 7
heroku 7
5: Heroku 8
8
-
8
Examples 8
H10 - App 8
H11 - 9
H12 - 9
H13 - 9
H14 - dynos 9
H15 - 10
6: Heroku 11
11
Examples 11
Heroku 11
7: Heroku 12
Examples 12
Heroku 12
8: 13
13
Examples 13
13
9: 14
14
14
Examples 14
14
OS X. 14
14
Debian / Ubuntu 14
14
14
14
10: 16
-
16
Examples 16
16
16
16
16
16
11: 18
18
18
Examples 18
CLI 18
12: 19
19
Examples 19
Git 19
git 19
Heroku 19
19
21
-
You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: heroku
It is an unofficial and free heroku ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official heroku.
The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.
Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to [email protected]
https://riptutorial.com/zh-TW/home 1
http://riptutorial.com/ebook/herokuhttps://archive.org/details/documentation-dump.7zmailto:[email protected]
-
1: heroku
HerokuPaaSWeb。 Heroku2007Salesforce。
Heroku。
Heroku。Heroku。
Examples
HerokuHeroku Toolbelt。
HerokuHeroku Toolbelt。
brewheroku
brew install heroku
Debian / Ubuntuwget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
HerokuaptHerokuHeroku ToolbeltRuby。
。
Heroku Toolbelt
heroku create your-app-name
Heroku
git push heroku master
heroku open your-app-name
https://riptutorial.com/zh-TW/home 2
https://www.salesforce.com/https://toolbelt.heroku.com/https://toolbelt.heroku.com/install-ubuntu.sh
-
Heroku
heroku commands
heroku help
heroku help
Heroku
heroku createHeroku。Heroku。
Heroku。Heroku。
Heroku
heroku create [app_name]
heroku createHeroku。
HerokuAmazon。Herokuus。
heroku create [app_name] --region eu
useu 。
heroku https://riptutorial.com/zh-TW/heroku/topic/959/heroku
https://riptutorial.com/zh-TW/home 3
https://riptutorial.com/zh-TW/heroku/topic/959/heroku%E5%85%A5%E9%96%80https://riptutorial.com/zh-TW/heroku/topic/959/heroku%E5%85%A5%E9%96%80https://riptutorial.com/zh-TW/heroku/topic/959/heroku%E5%85%A5%E9%96%80
-
2: Buildpack
Examples
Buildpacks
HerokuRubyNode.jsClojurePythonJavaGradleGrailsScalaPlayPHPGobuildpack 。
HerokuCLI
heroku create --buildpack 1.
heroku buildpacks:set 2.
URLBuildpack。PHP buildpack
heroku buildpacks:set heroku/php
heroku buildpacks:set https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-php
buildpack
buildpack。add
heroku buildpacks:add --index 1
- --indexbuildpack。
heroku buildpacks:set heroku/php heroku buildpacks:add --index 1 heroku/nodejs
buildpack
heroku/nodejs heroku/php
Heroku--80。。web: node server.jsprocfile 80PHP。。。
Buildpack https://riptutorial.com/zh-TW/heroku/topic/6126/buildpack
https://riptutorial.com/zh-TW/home 4
https://devcenter.heroku.com/articles/buildpacks#officially-supported-buildpackshttps://riptutorial.com/zh-TW/heroku/topic/6126/buildpack
-
3: Heroku node.js Hello Worldheroku login
heroku createheroku create your_name
git clone https://github.com/zoutepopcorn/herokuworld cd herokuworld
https://your_name.herokuapp.com/
heroku local web
lolhost5000
node.js apppackage.json
"scripts": { "start": "node index.js" }, "engines": { "node": "7.6.0" }
index.js
process.env.PORT
5000。HerokuURL80。
Examples
Heroku node.js
index.js
var http = require("http"); http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Heroku world!"); response.end(); }).listen(process.env.PORT);
package.json
{ "name": "node-example", "version": "1.0.0",
https://riptutorial.com/zh-TW/home 5
-
"description": "Hello world Heroku", "scripts": { "start": "node index.js" }, "keywords": [ "example", "heroku" ], "author": "Johan", "license": "MIT", "engines": { "node": "7.6.0" } }
Heroku node.js Hello World https://riptutorial.com/zh-TW/heroku/topic/9897/heroku-node-js-hello-world
https://riptutorial.com/zh-TW/home 6
https://riptutorial.com/zh-TW/heroku/topic/9897/heroku-node-js-hello-worldhttps://riptutorial.com/zh-TW/heroku/topic/9897/heroku-node-js-hello-world
-
4: Heroku Postgres
Examples
HerokuPostgres
Heroku
1.SHARED_DATABASE_URL
heroku pg:reset DATABASE
2.
heroku run rake db:migrate
3.
heroku run rake db:seed
23
heroku run rake db:setup
heroku
heroku
1.
heroku pg:pull DATABASE_URL change_to_your_data_base_name --app change_to_your_app_name
2.
GRANT ALL PRIVILEGES ON DATABASE change_to_your_data_base_name to change_to_your_user; ALTER DATABASE change_to_your_data_base_name OWNER TO change_to_your_user;
3.
SELECT 'ALTER TABLE '|| schemaname || '.' || tablename ||' OWNER TO change_to_your_user;' FROM pg_tables WHERE NOT schemaname IN ('pg_catalog', 'information_schema') ORDER BY schemaname, tablename;
Heroku Postgres https://riptutorial.com/zh-TW/heroku/topic/6239/heroku-postgres
https://riptutorial.com/zh-TW/home 7
https://riptutorial.com/zh-TW/heroku/topic/6239/heroku-postgres
-
5: Heroku
HerokuHTTP503.。HTTPHR。L。
H10 - App•H11 - •H12 - •H13 - •H14 - dynos•H15 - •H16 - herokuapp.com•H17 - HTTP•H18 - •H19 - •H20 - App•H21 - •H22 - •H23 - •H24 - •H25 - HTTP•H26 - •H27 - •H28 - •H80 - •H81 - •H82 - dyno•H99 - •R10 - •R12 - •R13 - •R14 - •R15 - •R16 - •R17 - •R99 - •L10 - •L11 - •L12 - •L13 - •L14 - •
Examples
H10 - App
https://riptutorial.com/zh-TW/home 8
-
Web dynoweb dyno。
2010-10-06T21:51:04-07:00 heroku[web.1]: State changed from down to starting 2010-10-06T21:51:07-07:00 app[web.1]: Starting process with command: `bundle exec rails server -p 22020` 2010-10-06T21:51:09-07:00 app[web.1]: >> Using rails adapter 2010-10-06T21:51:09-07:00 app[web.1]: Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. 2010-10-06T21:51:10-07:00 heroku[web.1]: Process exited 2010-10-06T21:51:12-07:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp.herokuapp.com fwd=17.17.17.17 dyno= connect= service= status=503 bytes=
H11 -
HTTP。。H11。dynos。
2010-10-06T21:51:07-07:00 heroku[router]: at=error code=H11 desc="Backlog too deep" method=GET path="/" host=myapp.herokuapp.com fwd=17.17.17.17 dyno= connect= service= status=503 bytes=
dynos。。
H12 -
HTTP30。Rails37;RailsHTTP503Rails。
2010-10-06T21:51:07-07:00 app[web.2]: Processing PostController#list (for 75.36.147.245 at 2010-10-06 21:51:07) [GET] 2010-10-06T21:51:08-07:00 app[web.2]: Rendering template within layouts/application 2010-10-06T21:51:19-07:00 app[web.2]: Rendering post/list 2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/" host=myapp.herokuapp.com fwd=17.17.17.17 dyno=web.1 connect=6ms service=30001ms status=503 bytes=0 2010-10-06T21:51:42-07:00 app[web.2]: Completed in 37000ms (View: 27, DB: 21) | 200 OK [http://myapp.heroku.com/]
30dyno。
H13 -
web dyno。
2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=myapp.herokuapp.com fwd=17.17.17.17 dyno=web.1 connect=3030ms service=9767ms status=503 bytes=0
Unicorn Web30。UnicornH13。
H14 - dynos
https://riptutorial.com/zh-TW/home 9
-
dynos0 dynos。1dynos
$ heroku ps:scale web=1
heroku psWeb dynos。
2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=myapp.herokuapp.com fwd=17.17.17.17 dyno= connect= service= status=503 bytes=
H15 -
55dyno。Content-Length50。
2010-10-06T21:51:37-07:00 heroku[router]: at=error code=H15 desc="Idle connection" method=GET path="/" host=myapp.herokuapp.com fwd=17.17.17.17 dyno=web.1 connect=1ms service=55449ms status=503 bytes=18
Heroku https://riptutorial.com/zh-TW/heroku/topic/8321/heroku
https://riptutorial.com/zh-TW/home 10
https://riptutorial.com/zh-TW/heroku/topic/8321/heroku%E9%8C%AF%E8%AA%A4%E4%BB%A3%E7%A2%BChttps://riptutorial.com/zh-TW/heroku/topic/8321/heroku%E9%8C%AF%E8%AA%A4%E4%BB%A3%E7%A2%BChttps://riptutorial.com/zh-TW/heroku/topic/8321/heroku%E9%8C%AF%E8%AA%A4%E4%BB%A3%E7%A2%BChttps://riptutorial.com/zh-TW/heroku/topic/8321/heroku%E9%8C%AF%E8%AA%A4%E4%BB%A3%E7%A2%BChttps://riptutorial.com/zh-TW/heroku/topic/8321/heroku%E9%8C%AF%E8%AA%A4%E4%BB%A3%E7%A2%BC
-
6: Heroku
Heroku。
Examples
Heroku
Heroku
heroku addons:create scheduler:standard
Heroku https://riptutorial.com/zh-TW/heroku/topic/8906/heroku
https://riptutorial.com/zh-TW/home 11
https://riptutorial.com/zh-TW/heroku/topic/8906/heroku%E9%99%84%E5%8A%A0%E7%B5%84%E4%BB%B6https://riptutorial.com/zh-TW/heroku/topic/8906/heroku%E9%99%84%E5%8A%A0%E7%B5%84%E4%BB%B6https://riptutorial.com/zh-TW/heroku/topic/8906/heroku%E9%99%84%E5%8A%A0%E7%B5%84%E4%BB%B6https://riptutorial.com/zh-TW/heroku/topic/8906/heroku%E9%99%84%E5%8A%A0%E7%B5%84%E4%BB%B6https://riptutorial.com/zh-TW/heroku/topic/8906/heroku%E9%99%84%E5%8A%A0%E7%B5%84%E4%BB%B6
-
7: Heroku
Examples
Heroku
1.Heroku1500。1500Heroku 。
2. HTTP3055。1MB。
3. Dynos Dyno 。dynos 30。dyno550.100dynos10dynos。dynodynos。
4. 32kb。
5.75Heroku Git。1GB。 Slug300 MB15。
6.10100,000。
7. Heroku Postgres415。
8. APIHeroku API2400 /。
9.50025。
10.100。5。
Heroku https://riptutorial.com/zh-TW/heroku/topic/6190/heroku
https://riptutorial.com/zh-TW/home 12
https://elements.heroku.com/addons/#logginghttps://elements.heroku.com/addons/#logginghttps://devcenter.heroku.com/articles/dyno-types#available-dyno-typeshttps://devcenter.heroku.com/articles/dyno-types#available-dyno-typeshttps://devcenter.heroku.com/articles/free-dyno-hours#dyno-sleepinghttps://devcenter.heroku.com/articles/free-dyno-hours#dyno-sleepinghttps://devcenter.heroku.com/articles/free-dyno-hours#dyno-sleepinghttps://devcenter.heroku.com/articles/free-dyno-hours#dyno-sleepinghttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/config-varshttps://devcenter.heroku.com/articles/heroku-postgres-plans#plan-tiershttps://devcenter.heroku.com/articles/heroku-postgres-plans#plan-tiershttps://riptutorial.com/zh-TW/heroku/topic/6190/heroku%E9%99%90%E5%88%B6https://riptutorial.com/zh-TW/heroku/topic/6190/heroku%E9%99%90%E5%88%B6https://riptutorial.com/zh-TW/heroku/topic/6190/heroku%E9%99%90%E5%88%B6
-
8: “”{...}•
Examples
package.jsonbower
"dependencies": { "bower": "^1.7.9" }
1.
scriptspostinstall
"scripts": { "postinstall": "./node_modules/bower/bin/bower install" }
2.
.bowerrcbower_components。bower_components。
{ "directory" : "app/bower_components" }
3.
Herokunpm installbower install
https://riptutorial.com/zh-TW/heroku/topic/6665/
https://riptutorial.com/zh-TW/home 13
https://riptutorial.com/zh-TW/heroku/topic/6665/%E4%BE%9D%E8%B3%B4https://riptutorial.com/zh-TW/heroku/topic/6665/%E4%BE%9D%E8%B3%B4https://riptutorial.com/zh-TW/heroku/topic/6665/%E4%BE%9D%E8%B3%B4
-
9:
HerokuCLIHeroku Toolbelt/ shellHeroku。
$ heroku --version•$ heroku•$ heroku•
Examples
OS X.
OS X 。
32 64 Windows。
Debian / Ubuntu
aptCLI
$ sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./" $ curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add - $ sudo apt-get update $ sudo apt-get install heroku
tarballPATH。
$ echo replace OS/ARCH with values as noted below $ wget https://cli-assets.heroku.com/branches/stable/heroku-OS-ARCH.tar.gz $ tar -xvzf heroku-OS-ARCH /usr/local/lib/heroku $ ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
CLIheroku --version。
$ heroku --version heroku-cli/5.6.0-010a227 (darwin-amd64) go1.7.4
Heroku;API~/.netrc。
Heroku CLIgitHeroku
https://riptutorial.com/zh-TW/home 14
https://cli-assets.heroku.com/branches/stable/heroku-osx.pkghttps://cli-assets.heroku.com/branches/stable/heroku-osx.pkghttps://cli-assets.heroku.com/branches/stable/heroku-osx.pkghttps://cli-assets.heroku.com/branches/stable/heroku-osx.pkghttps://cli-assets.heroku.com/branches/stable/heroku-osx.pkghttps://cli-assets.heroku.com/branches/stable/heroku-windows-386.exehttps://cli-assets.heroku.com/branches/stable/heroku-windows-386.exehttps://cli-assets.heroku.com/branches/stable/heroku-windows-amd64.exehttps://cli-assets.heroku.com/branches/stable/heroku-windows-amd64.exe
-
$ heroku login Enter your Heroku credentials. Email: [email protected] Password (typing will be hidden): Authentication successful.
Heroku
$ cd ~/myapp $ heroku create Creating app... done, sleepy-meadow-81798 https://sleepy-meadow-81798.herokuapp.com/ | https://git.heroku.com/sleepy-meadow-81798.git
https://riptutorial.com/zh-TW/heroku/topic/8324/
https://riptutorial.com/zh-TW/home 15
https://riptutorial.com/zh-TW/heroku/topic/8324/%E5%91%BD%E4%BB%A4%E8%A1%8Chttps://riptutorial.com/zh-TW/heroku/topic/8324/%E5%91%BD%E4%BB%A4%E8%A1%8Chttps://riptutorial.com/zh-TW/heroku/topic/8324/%E5%91%BD%E4%BB%A4%E8%A1%8Chttps://riptutorial.com/zh-TW/heroku/topic/8324/%E5%91%BD%E4%BB%A4%E8%A1%8C
-
10: $ heroku•$ heroku logs -n 200•$ heroku logs --tail•$ heroku logs --dyno router•$ heroku logs --source app•$ heroku logs --source app --dyno worker•$ heroku logs --source app --tail•
Examples
Heroku
- 。。 - --source app •
- HerokuWeb dyno。 - --source heroku •
API - 。 - --source heroku --dyno api •
timestamp source[dyno]: message
- dyno。RFC5424。•
- dynosweb dynoscron app 。HerokuHTTPdyno heroku 。•
Dyno - dyno。worker3worker.3 Heroku HTTProuter 。•
- 。 dynos1000010000。。•
heroku logs。
$ heroku logs
logs100。--num -n 1,500。
$ heroku logs -n 200
tail -f。。--tail -t 。
$ heroku logs --tail
Ctrl + C。
https://riptutorial.com/zh-TW/home 16
-
dyno--source -s --dyno -d
$ heroku logs --dyno router 2012-02-07T09:43:06.123456+00:00 heroku[router]: at=info method=GET path="/stylesheets/dev-center/library.css" host=devcenter.heroku.com fwd="204.204.204.204" dyno=web.5 connect=1ms service=18ms status=200 bytes=13 2012-02-07T09:43:06.123456+00:00 heroku[router]: at=info method=GET path="/articles/bundler" host=devcenter.heroku.com fwd="204.204.204.204" dyno=web.6 connect=1ms service=18ms status=200 bytes=20375 $ heroku logs --source app 2012-02-07T09:45:47.123456+00:00 app[web.1]: Rendered shared/_search.html.erb (1.0ms) 2012-02-07T09:45:47.123456+00:00 app[web.1]: Completed 200 OK in 83ms (Views: 48.7ms | ActiveRecord: 32.2ms) 2012-02-07T09:45:47.123456+00:00 app[worker.1]: [Worker(host:465cf64e-61c8-46d3-b480-362bfd4ecff9 pid:1)] 1 jobs processed at 23.0330 j/s, 0 failed ... 2012-02-07T09:46:01.123456+00:00 app[web.6]: Started GET "/articles/buildpacks" for 4.1.81.209 at 2012-02-07 09:46:01 +0000 $ heroku logs --source app --dyno worker 2012-02-07T09:47:59.123456+00:00 app[worker.1]: [Worker(host:260cf64e-61c8-46d3-b480-362bfd4ecff9 pid:1)] Article#record_view_without_delay completed after 0.0221 2012-02-07T09:47:59.123456+00:00 app[worker.1]: [Worker(host:260cf64e-61c8-46d3-b480-362bfd4ecff9 pid:1)] 5 jobs processed at 31.6842 j/s, 0 failed ...
--tail。
$ heroku logs --source app --tail
https://riptutorial.com/zh-TW/heroku/topic/8327/
https://riptutorial.com/zh-TW/home 17
https://riptutorial.com/zh-TW/heroku/topic/8327/%E6%97%A5%E8%AA%8Chttps://riptutorial.com/zh-TW/heroku/topic/8327/%E6%97%A5%E8%AA%8Chttps://riptutorial.com/zh-TW/heroku/topic/8327/%E6%97%A5%E8%AA%8C
-
11: heroku ...•
Heroku。“”“”“”“”。
Examples
CLI
Heroku ToolbeltPipelines 。
heroku plugins:install heroku-pipelines
。--stage STAGE CLI。NAME。
heroku pipelines:create -a example
heroku pipelines:promote -r staging
heroku pipelines:promote -r staging --to my-production-app1,my-production-app2
heroku help pipelines
https://riptutorial.com/zh-TW/heroku/topic/2389/
https://riptutorial.com/zh-TW/home 18
https://github.com/heroku/heroku-pipelineshttps://github.com/heroku/heroku-pipelineshttps://github.com/heroku/heroku-pipelineshttps://riptutorial.com/zh-TW/heroku/topic/2389/%E7%AE%A1%E9%81%93https://riptutorial.com/zh-TW/heroku/topic/2389/%E7%AE%A1%E9%81%93https://riptutorial.com/zh-TW/heroku/topic/2389/%E7%AE%A1%E9%81%93
-
12: git push heroku master•
Examples
Git
git
HerokuGit。myapp
$ cd myapp $ git init Initialized empty Git repository in .git/ $ git add . $ git commit -m "my first commit" Created initial commit 5df2d09: my first commit 44 files changed, 8393 insertions(+), 0 deletions(-) create mode 100644 README create mode 100644 Procfile create mode 100644 app/controllers/source_file ...
.git。;Heroku。
Heroku
$ heroku create Creating falling-wind-1624... done, stack is cedar-14 http://falling-wind-1624.herokuapp.com/ | https://git.heroku.com/falling-wind-1624.git Git remote heroku added
Git。 heroku gitremotegit url。
$ heroku git:remote -a falling-wind-1624 Git remote heroku added.
。
$ git push heroku master Initializing repository, done. updating 'refs/heads/master' ...
https://riptutorial.com/zh-TW/home 19
-
master
$ git push heroku yourbranch:master
https://riptutorial.com/zh-TW/heroku/topic/8325/
https://riptutorial.com/zh-TW/home 20
https://riptutorial.com/zh-TW/heroku/topic/8325/%E9%83%A8%E7%BD%B2https://riptutorial.com/zh-TW/heroku/topic/8325/%E9%83%A8%E7%BD%B2https://riptutorial.com/zh-TW/heroku/topic/8325/%E9%83%A8%E7%BD%B2
-
S. No
Contributors
1 heroku Community, rdegges, thejonanshow
2 Buildpack Thamilan
3Heroku node.js Hello World
Johan Hoeksma
4 Heroku Postgres Denis Savchuk, Hardik Kanjariya ツ, Thamilan
5 Heroku Sender
6 Heroku jophab
7 Heroku autoboxer, Thamilan
8 Thamilan
9 Sender
10 Sender
11 Thamilan
12 Sender
https://riptutorial.com/zh-TW/home 21
https://riptutorial.com/zh-TW/contributor/-1/communityhttps://riptutorial.com/zh-TW/contributor/194175/rdeggeshttps://riptutorial.com/zh-TW/contributor/1349037/thejonanshowhttps://riptutorial.com/zh-TW/contributor/5447994/thamilanhttps://riptutorial.com/zh-TW/contributor/1876718/johan-hoeksmahttps://riptutorial.com/zh-TW/contributor/5433905/denis-savchukhttps://riptutorial.com/zh-TW/contributor/4423221/hardik-kanjariya-%E3%83%84https://riptutorial.com/zh-TW/contributor/4423221/hardik-kanjariya-%E3%83%84https://riptutorial.com/zh-TW/contributor/5447994/thamilanhttps://riptutorial.com/zh-TW/contributor/1074944/senderhttps://riptutorial.com/zh-TW/contributor/6281993/jophabhttps://riptutorial.com/zh-TW/contributor/3709716/autoboxerhttps://riptutorial.com/zh-TW/contributor/5447994/thamilanhttps://riptutorial.com/zh-TW/contributor/5447994/thamilanhttps://riptutorial.com/zh-TW/contributor/1074944/senderhttps://riptutorial.com/zh-TW/contributor/1074944/senderhttps://riptutorial.com/zh-TW/contributor/5447994/thamilanhttps://riptutorial.com/zh-TW/contributor/1074944/sender
關於章節 1: heroku入門備註Examples安裝或設置
下載家釀於Debian / Ubuntu使用Heroku Toolbelt
創建一個應用程序部署到Heroku在瀏覽器中打開您的應用程序列出Heroku命令一般幫助幫助特定命令創建Heroku應用程序
章節 2: BuildpackExamples設置Buildpacks多個buildpack
章節 3: Heroku node.js Hello World備註ExamplesHeroku node.js你好世界
章節 4: Heroku PostgresExamples如何在Heroku中重置Postgres數據庫如何將heroku數據庫複製到本地數據庫
章節 5: Heroku錯誤代碼介紹句法ExamplesH10 - App崩潰了H11 - 積壓太深H12 - 請求超時H13 - 連接關閉但沒有響應H14 - 沒有網絡dynos運行H15 - 空閒連接
章節 6: Heroku附加組件介紹ExamplesHeroku調度程序
章節 7: Heroku限制ExamplesHeroku平台中所有限制的列表
章節 8: 依賴句法Examples涼亭依賴
章節 9: 命令行介紹句法Examples下載並安裝
OS X.視窗於Debian / Ubuntu獨立版驗證您的安裝入門
章節 10: 日誌句法Examples日誌類型日誌格式查看日誌
實時尾巴日誌過濾
章節 11: 管道句法備註Examples通過CLI管道
章節 12: 部署句法Examples使用Git進行部署
在git中跟踪您的應用創建一個Heroku遙控器部署代碼積分