Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Last active August 29, 2015 13:56
Show Gist options
  • Save mxriverlynn/9195285 to your computer and use it in GitHub Desktop.
Save mxriverlynn/9195285 to your computer and use it in GitHub Desktop.
heroku deploy multiple apps from a single git repository
#! /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 ../../
web: node media/app.js
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