⚙️Add bash to quickly deploy the project

This commit is contained in:
Evil0ctal 2022-12-21 18:46:39 -08:00
parent acd50984fb
commit 629fd917b9

View File

@ -39,6 +39,7 @@ case $input in
case $input in case $input in
[yY]) [yY])
systemctl enable web_api.service systemctl enable web_api.service
echo "API service will start when system boot!"
;; ;;
[nN]| *) [nN]| *)
echo "You can start the service by running: systemctl start web_api.service" echo "You can start the service by running: systemctl start web_api.service"
@ -54,6 +55,7 @@ case $input in
case $input in case $input in
[yY]) [yY])
systemctl enable web_app.service systemctl enable web_app.service
echo "Web service will start when system boot!"
;; ;;
[nN]| *) [nN]| *)
echo "You can start the service by running: systemctl start web_app.service" echo "You can start the service by running: systemctl start web_app.service"
@ -72,16 +74,16 @@ case $input in
systemctl enable web_api.service systemctl enable web_api.service
;; ;;
[nN]| *) [nN]| *)
echo "You can start them on boot by these commands: echo "You can start them on boot by these commands:"
systemctl enable web_app.service/web_api.service" echo "systemctl enable (web_app.service||web_api.service)"
;; ;;
esac esac
echo "Starting WEB and API Services..." echo "Starting WEB and API Services..."
systemctl start web_app.service systemctl start web_app.service
systemctl start web_api.service systemctl start web_api.service
echo "API and APP service are running!" echo "API and APP service are running!"
echo "You can stop the api service by running following command: echo "You can stop the api service by running following command: "
systemctl stop web_app.service/web_api.service" echo "systemctl stop (web_app.service||web_api.service)"
;; ;;
*) *)
echo "Exiting without running anything..." echo "Exiting without running anything..."