Installation

Get latest iControlServer-python Release

Digitalblend Gitlab

Unzip archive into project folder

$ unzip Release-X.X.X.zip

Install environment

With alias

$ createenv && startenv && pip install -r requirements-dev.txt

Without

$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install -r requirements-dev.txt

Pre-configure Application

Go to Application/settings.py and modify the ICONTROL ANCHORS :

### ICONTROL ###
DEPLOYMENT = False

ICONTROL_ANCHOR_DOMAIN_NAME   = "*****.icontrol.digitalblend.fr"

...

Configure Plesk for python

  • Websites & Domains -> domain.ext -> Apache @ nginx Settings

    • additional Apache directives (HTTP & HTTPS)

      Alias /static /www/domain.ext/static
      
      <IfModule wsgi_module>
      	WSGIDaemonProcess domainExtWsgi user=digitalblenduser python-path=/www/domain.ext/.env/bin:/www/domain.ext/.env/lib/python3.5/site-packages
      	WSGIProcessGroup domainExtWsgi
      	WSGIScriptAlias / /www/domain.ext/Application/wsgi.py process-group=domainExtWsgi
      	WSGIPassAuthorization On
      </IfModule>
      
    • additional Nginx directives

      client_max_body_size 0;
      

Deployment

  • Prefer use Gitlab CI deployment

.gitlab.ci-yml example file

  • Don’t forget to create a super user

Please use iControl name for superuser name : for viet.icontrol.digitalblend.fr the superusername should be viet with a strong generated passord.

$ ssh digitalblend@digitalblend.fr
$ cd domain.ext/
$ startenv
$ django createsuperuser
    ...
$ deactivate