forked from RayCrafter/ansible-raycrafter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove gunicorn variables
- Loading branch information
Showing
1 changed file
with
2 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,8 @@ Dependencies: | |
|
||
- supervisor | ||
|
||
Create user and usergroup for gunicorn. | ||
Create user and usergroup for django. | ||
Create a virtualenv for the django project. | ||
Install gunicorn. | ||
|
||
Create gunicorn start script and logging files. | ||
|
||
Configure the virutalenv postactivate, so django environment variables are set. | ||
|
||
|
@@ -19,7 +16,7 @@ Set up the git repo of the django project. | |
Install additional packages. In the current configuration ``./install_os_dependencies.sh install`` is executed in the project directory. You likely have to change this. | ||
|
||
Create supervisor config files. | ||
Make the gunicorn user owner of the virtual env path. | ||
Make the django user owner of the virtual env path. | ||
|
||
--------- | ||
Variables | ||
|
@@ -36,8 +33,6 @@ application_name "{{ project_name }}" | |
virtualenv_root "/webapps" Location for where to create virtual env | ||
virtualenv_path "{{ virtualenv_root }}/{{ application_name }}" Path to the virtual env | ||
project_path "{{ virtualenv_path }}/{{ project_name }}" Path to the django project | ||
application_log_dir "{{ virtualenv_path }}/logs" Path to the log dir | ||
application_log_file "{{ application_log_dir }}/gunicorn_supervisor.log" Path to the log file | ||
requirements_file "{{ project_path }}/requirements.txt" Path to the pip requirements file of te project | ||
superuser_name superuser Django superuser to create | ||
superuser_email [email protected] Email of the django superuser | ||
|