Create a Web deployment configuration script
Creating a web configuration is not always that trivial.
a command which creates a wsgi (with venv support if a venv is detected, the curently provided wsgi does not support virtual environments) and an apache or nginx configuration file would be a handy feature.
example:
$ python manage.py make_web_conf
Usage: manage.py make_web_conf [options]
Create /home/yves/
or the contents of an apache openstack_
The apache configuration is generated on stdout because the place of this
file is distribution dependent.
examples::
manage.py make_web_conf --wsgi # creates /home/yves/
manage.py make_web_conf --apache # creates an apache vhost conf file (on stdout).
manage.py make_web_conf --apache --ssl --<email address hidden> --project=
To create an acpache configuration file, redirect the output towards the
location you desire, e.g.::
manage.py make_web_conf --apache > /etc/httpd/
Options:
-v VERBOSITY, --verbosity=
--settings=
--pythonpath=
--traceback Raise on exception
-a, --apache generate an apache vhost configuration
--cacert=CACERT Use with the --apache and --ssl option to define the
-f, --force force overwriting of an existing /home/yves/
-H HOSTNAME, --hostname=HOSTNAME
-m MAIL, --mail=MAIL Use with the --apache option to define the web site
-n, --namedhost Use with the --apache option. The apache vhost
-p PROJECT, --project=PROJECT
-s, --ssl Use with the --apache option. The apache vhost
--sslcert=SSLCERT Use with the --apache and --ssl option to define the
--sslkey=SSLKEY Use with the --apache and --ssl option to define the
-w, --wsgi generate the horizon.wsgi file
--version show program's version number and exit
-h, --help show this help message and exit
Deployement example:
http://
Blueprint information
- Status:
- Complete
- Approver:
- David Lyle
- Priority:
- Medium
- Drafter:
- Yves-Gwenael Bourhis
- Direction:
- Approved
- Assignee:
- Yves-Gwenael Bourhis
- Definition:
- Approved
- Series goal:
- Accepted for liberty
- Implementation:
- Implemented
- Milestone target:
- 8.0.0
- Started by
- David Lyle
- Completed by
- David Lyle
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Created a make_web_conf command.
asciinema demo: http://