Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 1.57 KB

README.md

File metadata and controls

28 lines (25 loc) · 1.57 KB

Image of Yaktocat

Installation

  • 1. From the development folder create an .env file:
    cp .env_template .env
    Populate the .env file with your sensitive variables. This file is included in the .gitignore and your variables will not be accessible to anyone else.
  • 2. Build and start the project:
    docker-compose up -d —build
  • 3. It may take up to 10 minutes to build and start the project. If you want to check the status of the running containers, run:
    docker ps
    Celery beat container is going to keep restarting until you set up the database as it is shown in the next bulletpoint.
  • 4. Here are the instructions for the initial project setup as well as the database setup.
      Log in into uwsgi container:
            docker-compose exec uwsgi bash
            In uwsgi container:
                python manage.py collectstatic
                python manage.py migrate
                python manage.py shell
                In the python shell (you can substitute 'root' to any other name/password you like):
                  from users.models import Profile; from django.contrib.auth.models import User
                  Profile.objects.create(user=User.objects.create_superuser(username="root", password="root"), subdomain="root")