-
Notifications
You must be signed in to change notification settings - Fork 5
Instructions to Run (3 of 3): Run Project
Benjamin Klieger edited this page Oct 29, 2023
·
1 revision
docker build -f Dockerfile.norail -t ai4collab:latest .
docker run --env-file {DEPLOYMENT}.env -p 8000:8000 ai4collab:latest
DEPLOYMENT = local, development, or production. Run with -d for detached.
The application is now up and running! You can check the status of the deployment for any errors in the logs.
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
touch {DEPLOYMENT}.env
DEPLOYMENT = local, development, or production
export $(cat {DEPLOYMENT}.env | xargs)
python manage.py test
python manage.py check --deploy
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py createsuperuser
uvicorn ai4collab.asgi:application
gunicorn --bind 0.0.0.0:8000 --workers 4 -k uvicorn.workers.UvicornWorker ai4collab.asgi:application
The application is now up and running! You can check the status of the deployment for any errors in the logs, or visit /deployment while logged in as a superadmin through the admin panel at /admin.