Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 2.08 KB

File metadata and controls

52 lines (40 loc) · 2.08 KB

Heroku Setup

  1. Deploy Application to Heroku is where you want to be after an account is created because your app already exists. You want to repeat the process for the front end application as well. You can check if your app is added on heroku with this command:
$ git remote -v
Click to see example!

heroku	https://git.heroku.com/<your app name>.git (fetch)
heroku	https://git.heroku.com/<your app name>.git (push)
origin	git@github.com:<your github username>/craft_circle_be.git (fetch)
origin	git@github.com:<your github username>/craft_circle_be.git (push)


  • If your terminal doesn't reflect the example above input this command
$ heroku git:remote -a <your app name>
  1. Deploy your code:
$ git push heroku main -a <your app name>
  1. Migrate and seed your database:
$ heroku run rails db:{create,migrate,seed}
  • Once your migrations are finished run this command and after awhile your terminal will produce a similar result in the example below
Click to see example!

Heroku Database


  1. Ensure your API keys are set up on your web app
From your Heroku dashboard, click on the project you just created, then Settings. In the Config Vars section, click Reveal Config Vars. Here, you can add any API keys with the constant name you gave them in the application.yml file created from the figaro gem.