Last active
August 29, 2015 13:56
-
-
Save mxriverlynn/9195285 to your computer and use it in GitHub Desktop.
heroku deploy multiple apps from a single git repository
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
#! /bin/sh | |
git checkout master | |
cp -R lib deploy/production.media | |
cp -R media deploy/production.media | |
cp .gitignore deploy/production.media | |
cp .slugignore deploy/production.media | |
cp package.json deploy/production.media | |
cp lib/epa/shared/media.procfile deploy/production.media/Procfile | |
cd deploy/production.media | |
git add -A | |
git commit -m "production deploy for media" | |
git push heroku-media master -f | |
cd ../../ | |
cp -R lib deploy/production.web | |
cp -R qhandlers deploy/production.web | |
cp -R www deploy/production.web | |
cp .gitignore deploy/production.web | |
cp .slugignore deploy/production.web | |
cp package.json deploy/production.web | |
cp lib/epa/shared/web.procfile deploy/production.web/Procfile | |
cd deploy/production.web | |
git add -A | |
git commit -m "production deploy for web" | |
git push heroku-web master -f | |
cd ../../ | |
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
web: node media/app.js |
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
web: node www/app.js | |
qhandlers: node qhandlers/index.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment