From a0a3b7aec2606dd13bc2f783d106cdb809b551e8 Mon Sep 17 00:00:00 2001 From: james Date: Sat, 21 Oct 2023 17:44:09 +0800 Subject: [PATCH] Use systemctl enable --- .github/workflows/actions-ec2.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions-ec2.yml b/.github/workflows/actions-ec2.yml index db3994f..3508388 100644 --- a/.github/workflows/actions-ec2.yml +++ b/.github/workflows/actions-ec2.yml @@ -30,9 +30,9 @@ jobs: pwd git pull origin main cd frontend - sudo ln -s scripts/app-store-api.service /etc/systemd/system/app-store-api.service - sudo ln -s scripts/app-store-frontend.socket /etc/systemd/system/app-store-frontend.socket - sudo ln -s scripts/app-store-frontend.service /etc/systemd/system/app-store-frontend.service + sudo systemctl enable /home/ubuntu/app-store-dash/scripts/app-store-api.service + sudo systemctl enable /home/ubuntu/app-store-dash/scripts/app-store-frontend.socket + sudo systemctl enable /home/ubuntu/app-store-dash/scripts/app-store-frontend.service sudo systemctl daemon-reload sudo systemctl restart app-store-api npm run build