git add .
and git commit
).bundle install
which psql
and psql
/psql -h localhost
)$ heroku login
$ heroku create
$ git push heroku master
$ heroku run rake db:migrate
$ heroku open
Sanity check: before you push to heroku, you can also make sure that a remote is set by running git remote -v
. If a line with heroku
and then a URL appears in your terminal, than your github repository and herokuapp are connected.
If you have extra gems installed or Bootstrap, you might need extra configuration. Google to fix errors! For example, for Bootstrap, you either need to run rake assets:precompile
or set config.assets.compile = true
in production.rb
.