Skip to content

Commit 32b8d9a

Browse files
committed
권한 부여 tset
1 parent ea23a76 commit 32b8d9a

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,18 @@ jobs:
2121
script: |
2222
set -e
2323
cd /home/ubuntu/JpopX-server
24-
rm -rf .env
25-
git pull origin main
26-
echo "$ENV" > .env
27-
pnpm i
28-
pnpm run build
29-
pm2 kill
30-
pm2 start dist/main.js --name "server-running"
24+
25+
echo "$ENV" > /tmp/env_content
26+
27+
sudo git pull origin main
28+
sudo rm -f .env
29+
sudo cp /tmp/env_content .env
30+
sudo chown root:root .env
31+
sudo chmod 644 .env
32+
33+
rm -f /tmp/env_content
34+
35+
sudo pnpm i
36+
sudo pnpm run build
37+
sudo pm2 kill
38+
sudo pm2 start dist/main.js --name "server-running"

0 commit comments

Comments
 (0)