Last active
August 29, 2015 14:00
-
-
Save ccjeng/11284024 to your computer and use it in GitHub Desktop.
heroku nodejs deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
## git link to github repo | |
## git remote add origin [email protected]:ccjeng/tptrash-api.git | |
git add . | |
# commit program to local git repo | |
git commit –m "First commit" | |
# create app on heroku | |
heroku create <app name> | |
# deploy to heroku by force | |
git push heroku master -f | |
# start app | |
heroku ps:scale web=1 | |
# stop app | |
heroku ps:scale web=0 | |
### remove | |
# remove local git repo | |
rm -rf .git | |
# remove remote heroku git repo | |
heroku remote -remove <repo name> | |
## push change to github | |
git add . | |
git commit -f "change" | |
git push origin master -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment