irongit

removed useless &&

huncholanehuncholaneauthored
parent 4269697commit 31125fac6cb4aaa80e6076993222aa45122ec535Browse files

3 files changed, +6 -5

+1-1dev
@@ -12,6 +12,6 @@ fi
1212 if [ -n "$1" ]; then
1313 bash devscripts/$1 ${@:2}
1414 else
15- echo "Running the docker compose"
15+ docker compose down
1616 docker compose up --build --remove-orphans
1717 fi
+3-2devscripts/back
@@ -1,6 +1,7 @@
11 #!/bin/bash
22
33 # start the development docker container
4+docker compose down
45 docker compose -f dev-compose.yml up -d --remove-orphans
56
67 cd rango/backend
@@ -13,8 +14,8 @@ fi
1314
1415 # if no argument, run the backend
1516 if [ -z "$1" ]; then
16- python manage.py runserver 0.0.0.0:8000 & cd ../..
17+ python manage.py runserver 0.0.0.0:8000
1718 else
1819 # run the arguments as python manage.py
19- python manage.py $1 ${@:2} && cd ../..
20+ python manage.py $1 ${@:2}
2021 fi
+2-2devscripts/front
@@ -5,7 +5,7 @@ cd rango/frontend
55 # if there is no argument, run the npm dev server
66 # else npm run the command
77 if [ -z "$1" ]; then
8- npm run dev & cd ../..
8+ npm run dev
99 else
10- npm run $1 && cd ../..
10+ npm run $1
1111 fi