⚠️ Deprecation warning: this project isn't under support anymore, it may still work for some cases, but it isn't guaranteed.
This package allows you to deploy python web service to remote server using fabric on client side and invoke, docker on server side.
Currently it supports:
- Django-based services
Prerequisites:
- Python 3.5.x
-
Download project source files
-
In the terminal type:
cd path_to_deploy/deploy pip3.5 install -r requirements.txt
-
You need server with CentOS 7 and open ssh port
-
Put .pem server ssh certificate to deploy/certs
-
Create server_config.ini in deploy/ (example in deploy/server_config_example.ini)
-
Create deployment.ini in deploy/deployment_tools/ (example in deploy/deployment_tools/deployment_example.ini)
-
Copy Your Django projects to deploy/deployment_tools/src/
-
Type below instructions in terminal (install GitBash on Windows)
cd path_to_deploy/deploy
6.1. First deploy:
fab tune_env deploy
6.2. Update:
fab tune_env force_update
If You have found an error or want to offer some changes - create a pull request, and I will review it as soon as possible!