Skip to main content

CLI for Django deployments

Project description

Sawi is a tool to deploy Django projects based on sawi template at https://github.com/vicobits/sawi

Installation

Stable Version pip install sawi

Development Version [sudo] pip install git+https://github.com/vicobits/sawi-cli.git

Usage

  1. Clone sawi Django template

git clone https://github.com/vicobits/sawi.git

  1. Add environment variables

The project must have a folder called .envs for environment variables por development and a file .env for production with virtualenv deployment mode.

  1. Add config file

By defaul sawi uses django.json, This file could contains configuration values, for example:

{
    "deployment": "virtualenv",
    "project": "sawi",
    "password": "CHANGE_THIS!!",
    "domain": "www.xiberty.com",
    "ipv4": "0.0.0.0",
    "db_engine": "postgres",
    "web_server": "nginx",
    "https": true,
    "superuser": "username",
    "sshkey": "/Users/username/.ssh/id_rsa.pub"
}

License

This code is licensed under the MIT License.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sawi, version 0.0.11
Filename, size File type Python version Upload date Hashes
Filename, size sawi-0.0.11.tar.gz (12.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page