Excel Play platform.
git clone --recurse-submodules https://github.com/Excel-MEC/excelplay-platform.git
- Install Docker and Docker-compose
- docker-compose up
- Install Docker
- Clone the repository
`git clone --recurse-submodules https://github.com/Excel-MEC/excelplay-platform.git`
sudo docker-compose build
sudo docker-compose up
(You have to do this only once). After all the containers are started, quit ^c.sudo docker-compose start
(For starting all the containers)- (exec into auth django project)
sudo docker exec -it <auth django image name> bash
- cd to auth's manage.py directory
python manage.py collect static
( This will create static files in that directory. Move this to platform directory )
- exec into excelplay-auth container (
sudo docker exec -it <auth django image name> bash
) - cd to auth's manage.py directory.
- python manage.py collect static ( This will create static files in that directory. Move this to platform directory )
- Status
sudo docker-compose ps
- Logs
sudo docker-compose logs <container_name>
- logs of the last n minutes
sudo docker-compose logs --since 2m <container_name>
- To delete all containers (Useful when there is a cache problem)
sudo docker-compose stop
sudo docker system prune
- To restart docker
sudo docker-compose stop
sudo docker-compose start
Never use 'sudo docker-compose restart' to restart