heroku quick deploy

#need pg in Gemfile
#sqlite3 in dev
1) gem install heroku

2) heroku login

3) heroku create

4) heroku apps:rename newapp 
[https://devcenter.heroku.com/articles/renaming-apps]

5) git push heroku master
[https://devcenter.heroku.com/articles/git]

6) heroku run rake db:version
[https://devcenter.heroku.com/articles/rake]

7) heroku run rake --trace db:migrate



Gold: http://newapp.herokuapp.com

Silver: http://newapp.herokuapp.com



Console: 
------------
heroku run console



Further reading:
----------------------
https://devcenter.heroku.com

你可能感兴趣的:(Ruby,heroku)