- create ssh key for server (ssh-keygen -t rsa)
- add to Github (cat ~/.ssh/id_rsa.pub)
- git clone project into '/home/django'
- rename the default 'django_project' to 'django_project2'
- rename your project app to 'django_project'
- edit 'etc/systemd/system/gunicorn.service' (... forward.wsgi:application)
- edit 'etc/nginx/sites-enabled/default' (path)
- pip install -r requirements.txt
- eit forward/settings.py (ALLOWED_HOST=['*'])
- python manage.py makemigrations
- python manage.py migrate
- python manage.py runserver
- systemctl daemon-reload
- systemctl restart gunicorn
- (restart droplet if changes not take effect)
- Give access of repo to DigitalOcean
- python manage.py makemigrations
- python manage.py migrate
- gunicorn --worker-tmp-dir /dev/shm forward.wsgi