This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
…
Please feel free to use a different markup language if you do not plan to run rake doc:app.
Make sure you are in the directory that contains your Rails app, then create an app on Heroku:
heroku create
Our application on Heroku called: ancient-scrubland-6137
You can verify that the remote was added to your project by running
git config --list | grep heroku
Deploy your code:
git push heroku master
It is always a good idea to check to see if there are any warnings or errors in the output. If everything went well you can migrate your database.
git pull(on master branch) git checkout production git pull(on production branch) git merge master rake assets:precompile --trace RAILS_ENV=production git add -p git commit -a -m "message" git push git push heroku production:master heroku run rake db:migrate (if you have new migrations) heroku restart (if you have new migrations)
heroku logs --tail heroku run rails console