Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/cd_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
${{ runner.os }}-
- name: Install dependencies and run the test
run: |
echo "What user am I in test stage?"
echo $USER
npm install
npm run functionalTests
deploy:
Expand All @@ -67,15 +69,6 @@ jobs:
- uses: actions/checkout@master
- name: Deploy the app on the server
run: |
if [[ ! -e /srv/node/logs/tinynode.txt ]]; then
mkdir -p /srv/node/logs
touch /srv/node/logs/tinynode.txt
fi
cd /srv/node/tiny-node/
pm2 stop tinyNode
git stash
git pull
git checkout ${{ github.head_ref }}
git pull
npm install
pm2 start -i max bin/tinyNode.js
su nodeapps
echo "What user am I in deploy stage?"
echo $USER
Loading