Deploy Servers to Heroku - acani/Chats GitHub Wiki

Database Servers

Setup

First, set up and deploy the REST server (below). During the first deployment of the REST server, Heroku will automatically add on an accompanying PostgreSQL database.

Deployment

Start and (re)initialize the acanichats database locally. Then, push it to Heroku.

heroku pg:reset DATABASE_URL
heroku pg:push acanichats DATABASE_URL

REST Servers

Setup

cd Servers/REST

Create a Heroku app

heroku apps:create your-app-name

Or, if you already have one, just add it as a remote

heroku git:remote -a your-app-name

Set config vars for AWS

heroku config:set MAILGUN_DOMAIN_NAME=samples.mailgun.org \
                  MAILGUN_API_KEY=key-3ax6xnjp29jd6fds4gc373sgvjxteol0

Deployment

git push heroku master

See Also

Heroku Dev Center

Heroku Help Commands

  • heroku help
  • heroku help apps
  • heroku help config
  • heroku help pg