pip install auto-uwsgi
>>> from auto_uwsgi import Deployment
>>> deploy = Deployment(
'<username>',
'<path to project>',
'<path to virtual environment>',
'<domain name or ip>'
)
>>> deploy.start()
STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
>>> 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()