Deploying Angular Fullstack to Heroku
Download Heroku ToolBelt
Authenticate with Heroku
heroku auth:login
Deploy
yo angular-fullstack:heroku
Add MongoDB
Add MongoDB to Heroku only if you are using it
Verify your account at: https://heroku.com/verify
cd dist
heroku addons:create mongolab
Configuring Domains
You will need to add your root domain
heroku domains:add tourbook.io
You will also need to add any sub domains (if applicable)
heroku domains:add www.tourbook.io
See heroku domain documentation for details of how to configure your DNS.
To view existing domains
heroku domains
Set domain environment variable
Set the environment variable for your domain
cd dist
sample heroku domain
heroku config:set DOMAIN=tourappprod.herokuapp.com
sample custom domain
heroku config:set DOMAIN=www.tourbook.io
Future Deployments
grunt
grunt buildcontrol:heroku
Then, if you want to open it:
cd dist
grunt buildcontrol:heroku