File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ set -euo pipefail
1313REPO_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
1414CLIENT_DIR=" $REPO_DIR /client"
1515SERVER_DIR=" $REPO_DIR /server"
16- <<< <<< < HEAD
17- NGINX_WEB_ROOT=" /var/www/coursehub"
18- =======
1916NGINX_WEB_ROOT=" /var/www/coursehub/client"
20- >>>>>>> f385ff68fcab0ff89d8769e012a17c4ac23973fe
2117PM2_APP_NAME=" coursehub-backend"
2218
2319# ── Colours ─────────────────────────────────────────────────
@@ -54,12 +50,9 @@ deploy_frontend() {
5450 # Clear old build and copy new one
5551 sudo rm -rf " ${NGINX_WEB_ROOT:? } " /*
5652 sudo cp -r " $CLIENT_DIR /dist/." " $NGINX_WEB_ROOT /"
57- <<< <<< < HEAD
58- =======
5953 log " Reloading nginx..."
6054 sudo systemctl reload nginx
6155 sudo nginx -s reload
62- >>>>>>> f385ff68fcab0ff89d8769e012a17c4ac23973fe
6356
6457 success " Frontend deployed successfully!"
6558}
@@ -106,12 +99,9 @@ case "$TARGET" in
10699 log " Replacing files in $NGINX_WEB_ROOT ..."
107100 sudo rm -rf " ${NGINX_WEB_ROOT:? } " /*
108101 sudo cp -r " $CLIENT_DIR /dist/." " $NGINX_WEB_ROOT /"
109- <<< <<< < HEAD
110- =======
111102 log " Reloading nginx..."
112103 sudo systemctl reload nginx
113104 sudo nginx -s reload
114- >>>>>>> f385ff68fcab0ff89d8769e012a17c4ac23973fe
115105 success " Frontend deployed!"
116106
117107 # Backend
You can’t perform that action at this time.
0 commit comments