https://github.com/bitflower/deploy_to_heroku
Notes to myself
https://github.com/bitflower/deploy_to_heroku
Last synced: 4 months ago
JSON representation
Notes to myself
- Host: GitHub
- URL: https://github.com/bitflower/deploy_to_heroku
- Owner: bitflower
- Created: 2015-03-05T12:00:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-05T12:09:39.000Z (about 11 years ago)
- Last Synced: 2025-10-13T09:29:10.635Z (8 months ago)
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deploy_to_heroku
Notes to myself
# Process
1. Deploy the 'build' of the application - NOT the source
2. git init inside 'dist' or whatever the build path is (cd there before)
3. Commit all files
4. Setup a heroku remote: heroku git:remote -a APP_NAME
5. git push heroku master
# Configuration of heroku app
1. Setting up environment variables (or use the heroku admin):
$ heroku config:set NODE_ENV=production
$ heroku config:set NODE_PATH=lib
Additionally if a MongoDB is used set the MongoLab or ComposeIO Connection string:
$ heroku config:set MONGOLAB_URI=mongodb://USER:PW@HOST:PORT/DB
# Helper
Clean a heroku repository with this plugin:
https://github.com/heroku/heroku-repo
### Steps:
1. Run heroku plugins:install https://github.com/lstoll/heroku-repo.git
2. heroku repo:reset -a APP_NAME
Description can be found here:
https://coderwall.com/p/okrlzg/take-control-of-your-heroku-git-repository