jellyDean
jellyDean

Reputation: 93

Cannot Deploy Pyramid Application on Heroku

I am having issues deploying my Pyramid app on Heroku. It runs fine locally but as soon as I try to launch it I receive this error "pkg_resources.DistributionNotFound: mymedaproject". mymedaproject is the name of my project and is not a python library which is why I am confused. I followed the instructions from this recipe to get to this point:

http://pyramid-cookbook.readthedocs.org/en/latest/deployment/heroku.html

Any ideas?
enter image description here

Upvotes: 0

Views: 400

Answers (2)

Andrew Mackie
Andrew Mackie

Reputation: 374

Check your .gitignore file that it isn't blocking any egg or egg-info information.

If it is, Heroku won't be receiving the egg for your application.

Upvotes: 0

Sascha Gottfried
Sascha Gottfried

Reputation: 3329

May be you forgot to put your python project mymedaproject in development mode. What follows is the relevant part of the cookbook recipe.

Create a Procfile

$ echo "web: ./run" > Procfile

Create run with the following:

#!/bin/bash
python setup.py develop
python runapp.py

The first line puts your python project in development mode and enables Paste to load it using your INI file. Make sure Procfile, run, runapp.py and setup.py are in same directory.

References

Optimization

running a script using a Procfile should work without making it executable

$ echo "web: sh ./run" > Procfile

Upvotes: 1

Related Questions