mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-27 17:00:44 +03:00
set the python path in the procfile, and use foreman to start the server
This commit is contained in:
parent
063a6332a3
commit
21af4cf2b8
|
@ -1 +1 @@
|
||||||
web: gunicorn {{cookiecutter.repo_name}}/config/wsgi.py
|
web: gunicorn --pythonpath="$PWD/{{cookiecutter.repo_name}}" config.wsgi:application
|
|
@ -19,7 +19,7 @@ import os
|
||||||
# if running multiple sites in the same mod_wsgi process. To fix this, use
|
# if running multiple sites in the same mod_wsgi process. To fix this, use
|
||||||
# mod_wsgi daemon mode with each site in its own daemon process, or use
|
# mod_wsgi daemon mode with each site in its own daemon process, or use
|
||||||
# os.environ["DJANGO_SETTINGS_MODULE"] = "{{ repo_name }}.settings"
|
# os.environ["DJANGO_SETTINGS_MODULE"] = "{{ repo_name }}.settings"
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ cookiecutter.repo_name }}.config.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
|
||||||
os.environ.setdefault("DJANGO_CONFIGURATION", "Local")
|
os.environ.setdefault("DJANGO_CONFIGURATION", "Local")
|
||||||
|
|
||||||
# This application object is used by any WSGI server configured to use this
|
# This application object is used by any WSGI server configured to use this
|
||||||
|
|
Loading…
Reference in New Issue
Block a user