Skip to content

Instantly share code, notes, and snippets.

@mlocher
Created October 30, 2014 17:59
Show Gist options
  • Save mlocher/d6698e00668da7eed657 to your computer and use it in GitHub Desktop.
Save mlocher/d6698e00668da7eed657 to your computer and use it in GitHub Desktop.
Push a Mercurial repository to Heroku
pip install hg-git
echo "[extensions]" >> ~/.hgrc
echo "hgext.bookmarks =" >> ~/.hgrc
echo "hggit =" >> ~/.hgrc
echo "[alias]" >> ~/.hgrc
echo "push-heroku = push git+ssh://[email protected]/app.git" >> ~/.hgrc
PYTHONPATH=$(dirname $(which python))/../lib/python2.7/site-packages/
hg push-heroku
check_url "http://app.herokuapp.com"
@mlocher
Copy link
Author

mlocher commented Oct 30, 2014

Big thanks to @weargoggles for sharing the code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment