Skip to content
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

Merged
merged 10 commits into from May 22, 2014
Merged

heroku-able #1

merged 10 commits into from May 22, 2014

Conversation

jeremiak
Copy link
Contributor

To run on Heroku, you'll want two files for python apps:

  1. Procfile (required for all Heroku apps regardless of language/framework)
  2. requirements.txt

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 locally

requirements.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.

@jeremiak
Copy link
Contributor Author

Doesn't actually run on Heroku - should've checked that out. Will open a new one with the right code ><

@jeremiak jeremiak closed this May 21, 2014
@jeremiak
Copy link
Contributor Author

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

@jeremiak
Copy link
Contributor Author

@jeremiak jeremiak reopened this May 22, 2014
@jeremiak
Copy link
Contributor Author

You can see the app running on Heroku atm here: http://frozen-journey-1467.herokuapp.com/

@lyzidiamond
Copy link
Owner

THANKS FOR AWESOME

lyzidiamond added a commit that referenced this pull request May 22, 2014
@lyzidiamond lyzidiamond merged commit 139f748 into lyzidiamond:master May 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants