Skip to content

Back de l'outil d'accompagnement dans nos choix de 3A.

Notifications You must be signed in to change notification settings

quentin-duchemin/masterimi

Repository files navigation

my3a.enpc.org

Production

docker-compose pull
docker-compose up -d
./tools/load_fixtures.sh
docker-compose exec back /venv/bin/python manage.py createsuperuser --username louis.trezzini --email [email protected] --noinput
docker-compose exec back /venv/bin/python manage.py createsuperuser --username clement.riu --email [email protected] --noinput
docker-compose exec back /venv/bin/python manage.py createsuperuser --username sandrine.guillerm --email [email protected] --noinput

Development

# Installation du front
cd front/
npm install

# Lancement via docker
cd ../
python -c 'import os; print("SECRET_KEY=" + os.urandom(16).hex())' >  .env
sudo docker-compose -f docker-compose.yml -f dev.override.yml up --build

# Ajouter à /etc/hosts
127.0.0.1 my3a-dev.enpc.org

Se rendre sur http://my3a-dev.enpc.org:4200/

Building images

docker-compose -f docker-compose.yml -f build.override.yml build
docker-compose -f docker-compose.yml -f build.override.yml push