简体   繁体   中英

django heroku foreman start error code 1

Following the getting started with django heroku page verbatim. https://devcenter.heroku.com/articles/django

On the foreman start step, foreman is not running correctly. ProcFile contents,

web: gunicorn hellodjango.wsgi

Requirements contents:

Django==1.5.1
dj-database-url==0.2.1
gunicorn==0.17.4
psycopg2==2.4.5

enter virtual env exactly as tutorial, gunicorn, procfile and requirements located in scripts directory below, the wsgi.py file is located in directory hellodjango with pathline C:\\hellodjango2\\newvirtualenv\\Scripts\\hellodjango

python and python/scripts are located on pathfile.

here is the output

(newvirtualenv) C:\hellodjango2\newvirtualenv\Scripts>foreman start
09:48:58 web.1  | started with pid 3580
09:48:58 web.1  | exited with code 1
09:48:58 system | sending SIGKILL to all processes

Following the today's heroku documentation, it advises you to use:

$ heroku local web

instead of foreman . Can you give it a try?

Another thing you could do to check if everything is working fine is to run the django by itself: python manage.py runserver , if its not working, can you add the traceback generated by that call?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM