So I just deployed my first rails project Anime Chase on Heroku and I still am a surprised at how easy it was but I see many have yet to put their awesome projects on Heroku. I decided to write this post to understand the progress a little better of posting apps to heroku and to help my fellow, fellows in the journey of showing off what they worked so hard on last week.
So getting your stuff on Heroku is broken into about 6 steps and it feel very simliar to using git.
1. Sign up for a free Heroku account.
this step is very easy just go to https://www.heroku.com/ and follow the step in signing up for a free account.
2. Create your Heroku app
to do this while in app simply enter on the terminal:
this creates your app as a heroku app putting the heroku.
mines looked like this:
♥ heroku create animechase
This is also what your git config file should look like:
3. Edit the gemfile if need be. This includes add your more lines if you are using the gem sqlite.
4. Apply the changes if you edited your gem file in any way with typing this into your terminal:
bundle install --without production
5. Do all of your migrations, rake tasks, git commit and push to heroku master
♥ git push heroku master
♥ heroku run rake db:migrate
♥ figaro heroku:set -e production
6. Visit your sit by just typing this into the terminal:
Things to note:
If you’d like to edit the app on heroku this is the process:
If you have a free account be careful of going over the database limits at this moment you can only have 10K rows in your database. I personally had to scale down Anime Chase in order to keep it running on heroku.
understand and inform the api key providers, if need be, of where your app is hosted. I know things like facebook’s oauth would not work if you stated your app lived on localhost:3000 but you are making calls on the heroku domain name.
so if you would like more information on the subject matter read these lovely resources below