June 11, 2023

Deployment from A to Z

Buy host

Steps

  1. Git clone project to kenshuri.com
  2. Configure le domaine avec comme racine le dossiser cloné
  3. Créer une application python
  4. Application Root = kenshuri.com --> le dossier racine
  5. Application URL kenshuri.com
  6. Modifier le fichier kenshuri.com/passenger_wsgi pour qu'il pointe vers le bon fichier wsgi
import imp
import os
import sys


sys.path.insert(0, os.path.dirname(__file__))

wsgi = imp.load_source('wsgi', 'blogProject/wsgi.py')
application = wsgi.application
  1. pip install requirements / pip install poetry --> poetry install
  2. Restart app
  3. If it does not work, check that blogProject/wsgi has correct value
  4. makemigrations/migrate/collectstatic