-
Notifications
You must be signed in to change notification settings - Fork 78
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 deployment #4
Comments
Hello, it looks like foreman will provide a PORT variable, which tricks settings.py into thinking it is running on Heroku. You might try changing this line into: |
FWIW, I ran into the same issue. I know this is an old issue (closed more than 2 yrs ago, with no confirmation from @genkiro) But I'm adding this with the hope that someone finds this useful. I am not using i.e. It worked for me twice, with the gap of 6+ months. Unfortunately I didn't document my "source" the first time. Second time (May 2016) , I just looked at my "old" May be @nicolaiarocci can add some comments on why it works. |
Hi,
Thank you for initiating this project.
I tried to download this eve-demo project, and I was able to run it fine using
python run.py
command. But it behaves weird when I run it usingforeman start
(this is from https://devcenter.heroku.com/articles/getting-started-with-python#procfile). All the possible links return a 404 Not Found error.This problem also happens when we do deployment on Heroku. I thought it was a problem on the mongodb connection. So I made sure that the mongodb info on the
settings.py
is correct, but it doesn't fix the 404.May I know how you deploy to heroku? Do you do
foreman start
when running locally?The text was updated successfully, but these errors were encountered: