Skip to content

Dockerized web-development project built upon cutting-edge technologies such as Django Channels, Celery Periodic Tasks, Django Flags.

Notifications You must be signed in to change notification settings

ansysy24/GameEconomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

Dockerized web-development project built upon cutting-edge technologies such as Django Channels, Celery Periodic Tasks, Django Flags.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published