- Learning Heroku Postgres
- Patrick Espake
- 254字
- 2021-07-23 20:48:37
Deploying the sample application
First you will create a new Heroku application. Before executing the following command, check that you are inside the ruby-getting-started
directory:
$ heroku create Creating mighty-atoll-7219... done, stack is cedar-14 https://mighty-atoll-7219.herokuapp.com/ | https://git.heroku.com/mighty-atoll-7219.git Git remote heroku added
A new application was created with the name mighty-atoll-7219
and provided at https://mighty-atoll-7219.herokuapp.com. This URL will start working only after the first deploy. A Git repository was also created. This repository is available at https://git.heroku.com/mighty-atoll-7219.git and you can also add it using the git [some action] heroku
command.
Finally, for starting the deploy, just type the command:
$ git push heroku master Counting objects: 168, done. Delta compression using up to 4 threads. Compressing objects: 100% (110/110), done. Writing objects: 100% (168/168), 30.31 KiB | 0 bytes/s, done. Total 168 (delta 46), reused 164 (delta 43) Compressing source files... done. Building source: -----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-2.0.0 -----> Installing dependencies using 1.7.12 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Fetching gem metadata from https://rubygems.org/........... Installing rake 10.4.0 Installing i18n 0.6.11 ... -----> Preparing app for Rails asset pipeline Running: rake assets:precompile ... -----> Discovering process types Procfile declares types -> web Default types for Ruby -> console, rake, worker -----> Compressing... done, 27.0MB -----> Launching... done, v6 https://mighty-atoll-7219.herokuapp.com/ deployed to Heroku Verifying deploy... done. To https://git.heroku.com/mighty-atoll-7219.git ...
推薦閱讀
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- Delphi程序設計基礎:教程、實驗、習題
- jQuery從入門到精通 (軟件開發視頻大講堂)
- Java Web程序設計
- Python王者歸來
- Building a Quadcopter with Arduino
- Spring Boot Cookbook
- Learning OpenStack Networking(Neutron)(Second Edition)
- ASP.NET開發與應用教程
- Kubernetes源碼剖析
- MINECRAFT編程:使用Python語言玩轉我的世界
- 寫給程序員的Python教程
- Kotlin極簡教程
- PrimeFaces Blueprints
- Building Slack Bots