|
@@ -48,6 +48,7 @@ else
|
|
|
git clone https://$GIT_USER:$GIT_PASS@gogs.earthsquad.global/olarid7852/barcode_backend back
|
|
|
cd /opt
|
|
|
fi
|
|
|
+#cp /opt/back/requirements.txt /opt/barcode-docker/docker-celery/
|
|
|
|
|
|
## Clone Frontend
|
|
|
cd /opt
|
|
@@ -55,7 +56,7 @@ dir=front
|
|
|
if [ -d $dir ]; then
|
|
|
cd $dir
|
|
|
git pull https://$GIT_USER:$GIT_PASS@gogs.earthsquad.global/olarid7852/barcode_frontend
|
|
|
- docker run -ti --rm -v "$PWD":/srv -w /srv node:8 npm install
|
|
|
+# docker run -ti --rm -v "$PWD":/srv -w /srv node:8 npm install
|
|
|
cd /opt
|
|
|
else
|
|
|
git clone https://$GIT_USER:$GIT_PASS@gogs.earthsquad.global/olarid7852/barcode_frontend front
|
|
@@ -108,6 +109,8 @@ EOF
|
|
|
cd /opt/barcode-docker
|
|
|
docker-compose up -d --build --no-recreate
|
|
|
|
|
|
+sleep 10
|
|
|
+
|
|
|
docker exec -i barcode-back bash -c 'python manage.py makemigrations'
|
|
|
|
|
|
docker exec -i barcode-back bash -c 'python manage.py migrate'
|
|
@@ -217,5 +220,6 @@ echo -e "==================================== You can direct navigate your brows
|
|
|
echo -e "====================================================================================================================="
|
|
|
echo -e "Backend-mysql ---> http://$IP_ADDR:8000/api/admin/ ---> Username=$ADMIN_USER Password=$ADMIN_PASS
|
|
|
Frontend-mysql ---> http://$IP_ADDR:8080/ ---> Username=$ADMIN_USER Password=$ADMIN_PASS
|
|
|
-Mysql-admin ---> http://$IP_ADDR:5000/ ---> Username=backend Password=$ADMIN_PASS"
|
|
|
+Mysql-admin ---> http://$IP_ADDR:5000/ ---> Username=backend Password=$ADMIN_PASS
|
|
|
+Celery-Flower ---> http://$IP_ADDR:5555/"
|
|
|
echo -e "====================================================================================================================="
|