Skip to content

Commit 64588d7

Browse files
committed
messin around
1 parent f74b14a commit 64588d7

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

.github/workflows/cd_dev.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ jobs:
6969
- uses: actions/checkout@master
7070
- name: Deploy the app on the server
7171
run: |
72+
su nodeapps
7273
echo "What user am I in deploy stage?"
7374
echo $USER
74-
if [[ ! -e /srv/node/logs/tinynode.txt ]]; then
75-
mkdir -p /srv/node/logs
76-
touch /srv/node/logs/tinynode.txt
77-
fi
78-
cd /srv/node/tiny-node/
79-
pm2 stop tinyNode
80-
git stash
81-
git pull
82-
git checkout ${{ github.head_ref }}
83-
git pull
84-
npm install
85-
pm2 start -i max bin/tinyNode.js

0 commit comments

Comments
 (0)