Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.37 KB

heroku.md

File metadata and controls

53 lines (43 loc) · 1.37 KB

Deploy on Heroku

Create free Heroku account and create new app from dashboard.

Download, install and login into Heroku CLI.

Set and add the following buildpacks using heroku cli:

$ heroku buildpacks:set heroku/nodejs -a YOUR_HEROKU_PROJECT_NAME

$ heroku buildpacks:add heroku/jvm -a YOUR_HEROKU_PROJECT_NAME

$ heroku buildpacks:add https://github.com/alex-bezverkhniy/heroku-groovy-buildpack.git -a YOUR_HEROKU_PROJECT_NAME

Install Heroku Postgres and provision it to your heroku app.

Open your heroku app Settings from dashboard and set following Config Vars from Heroku Postgres credentials:

PGDATABASE
PGHOST
PGPASSWORD
PGPORT
PGUSER
PGSSL: TRUE // set to true

Also set the following Config Vars:

HOST: YOUR_HEROKU_PROJECT_NAME.herokuapp.com

Cloudinary

To upload images or some other multimedia - create free account on cloudinary and paste your cloudinary configs into your heroku app Config Vars:

CLOUDINARY_NAME
CLOUDINARY_KEY
CLOUDINARY_SECRET

Add the heroku remote to the git repository:

heroku git:remote -a test-new-app-then-remove

Deploy your changes:

git push heroku master

or

git push heroku local_branch_name:master