Skip to main content

Auto deploy django project on linux using nginx and uwsgi

Project description

Auto deploy Django project

Install:

pip install auto-uwsgi

Using

>>> from auto_uwsgi import Deployment
>>> deploy = Deployment(
    '<username>',
    '<path to project>',
    '<path to virtual environment>',
    '<domain name or ip>'
)
>>> deploy.start()

Change setting

STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

Example

>>> from auto_uwsgi import Deployment
>>> deploy = Deployment(
    'nghiem',
    '/home/nghiem/auto-uwsgi/tests/projecttest',
    '/home/nghiem/auto-uwsgi/tests/venv',
    '192.168.0.105'
)
>>> deploy.start()

Project details


Download files

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

Source Distribution

auto-uwsgi-1.0.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

auto_uwsgi-1.0.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page