aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/deploy.yml
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-09-24 23:00:32 +0700
committerGitHub <[email protected]>2023-09-24 23:00:32 +0700
commitc0778dcdb006f17984d3376fe691bd018e5ba2e0 (patch)
treedae09849c4d29a4a25ad27053596cbec87c30c74 /.github/workflows/deploy.yml
parentUpdate deploy.yml (diff)
downloadmoopa-c0778dcdb006f17984d3376fe691bd018e5ba2e0.tar.xz
moopa-c0778dcdb006f17984d3376fe691bd018e5ba2e0.zip
Update deploy.yml
Diffstat (limited to '.github/workflows/deploy.yml')
-rw-r--r--.github/workflows/deploy.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 44ce4ec..a4d6ca3 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -33,7 +33,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
- node-version: 18
+ node-version: 16
- name: Install dependencies
run: bun install
@@ -47,8 +47,10 @@ jobs:
- name: Check if temp directory exists
run: |
if [ ! -d "temp" ]; then
- echo '\033[31m temp Directory not exists!\033[0m'
+ echo "temp Directory does not exist!"
exit 1
+ else
+ echo "temp Directory exists."
fi
- name: Remove .next directory
@@ -57,6 +59,9 @@ jobs:
- name: Move temp to .next directory
run: mv temp .next
+ - name: Set HOME environment variable
+ run: echo 'export HOME=$HOME' >> $GITHUB_ENV
+
- name: Set PORT
run: echo "PORT=1000" >> $GITHUB_ENV
@@ -71,7 +76,7 @@ jobs:
- name: Reload PM2
run: |
- pm2 stop 29
- pm2 start 29 --update-env
+ pm2 stop moopa
+ pm2 start moopa --update-env
pm2 save
- service nginx restart
+ nginx -s reload