- Python==3.8.10
python3 manage.py makemigrations
python3 manage.py migrate --run-syncdb
DJANGO_SUPERUSER_USERNAME=serveradmin \
DJANGO_SUPERUSER_PASSWORD=serveradmin \
python3 manage.py createsuperuser --email "admin@admin.com" --noinput
// 시뮬레이션 가동이 필요 없다면 마지막 명령어만 실행
python3 manage.py process_tasks --queue picking-queue &
python3 manage.py process_tasks --queue packing-queue &
python3 manage.py process_tasks --queue delivery-queue &
python3 manage.py runserver
** master branch로 merge & push로 배포 **
AWS CLI profile 이름이 gravimetric
인 경우
aws ecr get-login-password --region ap-northeast-2 --profile gravimetric | docker login --username AWS --password-stdin 025646348585.dkr.ecr.ap-northeast-2.amazonaws.com
docker build --platform linux/amd64 -t gravimetric-server .
docker tag gravimetric-server:latest 025646348585.dkr.ecr.ap-northeast-2.amazonaws.com/gravimetric-server:latest
docker push 025646348585.dkr.ecr.ap-northeast-2.amazonaws.com/gravimetric-server:latest
aws ecr get-login-password --region ap-northeast-2 --profile gravimetric | docker login --username AWS --password-stdin 025646348585.dkr.ecr.ap-northeast-2.amazonaws.com
docker build --platform linux/amd64 -t gravimetric-client .
docker tag gravimetric-client:latest 025646348585.dkr.ecr.ap-northeast-2.amazonaws.com/gravimetric-client:latest
docker push 025646348585.dkr.ecr.ap-northeast-2.amazonaws.com/gravimetric-client:latest