Skip to content

A django SaltStack formula, with complete deployment example based on PostgreSQL+Nginx+Gunicorn+Let's Encrypt.

License

Notifications You must be signed in to change notification settings

bebosudo/django-formula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-formula

A SaltStack formula to configure and deploy multiple django websites.
Tested on Centos 7.

A working example, using Postgres, NGINX, gunicorn and Let's Encrypt, is available in the example directory.

NOTE

See the full Salt Formulas installation and usage instructions.

Available states

Globally install virtualenv with pip, setup a python virtualenv for each site, and install packages if requested.

Build the settings.py file for each site, using the file provided or by "compiling" the settings parameters in the pillar.

Configure systemd services for gunicorn, the WSGI server.

Download the latest source files of each site from the git address provided (note: the content in the installation directory will be wiped each time).

Apply all of the above states.

License

This project is licensed under the Apache License, version 2.0.
For the full license, refer to the LICENSE file in the root directory of this project.
Copyright 2018 Alberto Chiusole

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

A django SaltStack formula, with complete deployment example based on PostgreSQL+Nginx+Gunicorn+Let's Encrypt.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published