-
Notifications
You must be signed in to change notification settings - Fork 1
Deployment
Jana Rajakumar edited this page Feb 22, 2018
·
1 revision
- Download the latest version from
git clone https://git.library.utoronto.ca/digitaltoolsmss/iiifAPI.git - Modify
ALLOWED_HOSTS = ["server_domain_or_IP"]iniiifAPI/settings.py - Django uses the
STATIC_ROOTandSTATICFILES_DIRSsetting to determine the directory where these files should go. Runpython manage.py collectstaticfrom the root directory. - Modify
MONGO_DATABASE_NAMEandMONGO_DATABASE_HOSTto match the production environment settings.
- [Djano with Apache] (https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-16-04)
- [Django with NGINX] (https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04)
- NOTE: In either of these setup, there is no need to run the following commands because we use MongoDB.
-
manage.py makemigrations,manage.py migrateandmanage.py createsuperuser
-