pyeve / eve-demo

A fully functional REST Web API. Powered by Eve.
Other
256 stars 78 forks source link

Malfunctions when run with Foreman or when PORT environment variable exists #2

Closed inactivist closed 11 years ago

inactivist commented 11 years ago

Running eve-demo with python run.py works as expected on my local development system. When I run it using foreman start the app starts, listents on port 5000, but requests fail with 404 errors. No additional diagnostic information is provided.

eve-demo assumes that if the PORT environment variable is present, it's running the live demo on http://eve-demo.herokuapp.com and will try to connect to the live Mongo DB at mongohq.com. Subsequent resource requests fail with a 404 error as a result.

It would be helpful if eve-demo wrote diagnostic info to the console at initialization or when requests fail. Might save someone (me?) a bit of head-scratching.

nicolaiarocci commented 11 years ago

This is one of the many occurrences where logging would be useful. It's on the roadmap!