New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heroku-able #1
heroku-able #1
Conversation
Doesn't actually run on Heroku - should've checked that out. Will open a new one with the right code >< |
Looks like getting Shapely (well actually the GEOS library it depends on) to run on Heroku is a bit harder than I thought :/ This is all I can really find to go off: https://twitter.com/JCSanford/status/281540051203141632 |
https://github.com/codeforamerica/heroku-buildpack-pygeo <-- the good shit |
You can see the app running on Heroku atm here: http://frozen-journey-1467.herokuapp.com/ |
THANKS FOR AWESOME |
To run on Heroku, you'll want two files for python apps:
Procfile is your process file and tells Heroku what you want it to do. In this case it is telling Heroku that for the web instances you want it to simply run
python hello.py
which is what you do to get the app going locallyrequirements.txt tells Heroku (and any other user) what dependencies you want loaded to make the app run properly. It is really easy to generate from within your virtual environment. You simply run
pip freeze > requirements.txt
in the project directory.Protip: To install the requirements from a requirements.txt file you'll just use
pip install -r requirements.txt
and it will run through the file and install the dependencies.