- If this is your first time setting up a Heroku server. Take your time to read these documents Heroku Getting Started w/ Rails to familiarize yourself.
- 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 -vClick 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>- Deploy your code:
$ git push heroku main -a <your app name>- 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
- 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.
