Skip to content

Commit

Permalink
wip: trying to fix the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-moskal committed Sep 15, 2024
1 parent d8a8469 commit 290c55f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: deploy the director
run: |
rsync -vhamz --delete --exclude ".git" --exclude "node_modules" -e "ssh -o StrictHostKeyChecking=no" ./ [email protected]:/home/deployer/app/
ssh -o StrictHostKeyChecking=no [email protected] "cd /home/deployer && source .bashrc && cd app && bin/serverside/redeploy"
ssh -o StrictHostKeyChecking=no [email protected] "cd /home/deployer/app && bin/serverside/redeploy"
- name: 🌎 download assets
env:
Expand Down
5 changes: 5 additions & 0 deletions bin/serverside/redeploy
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# do not run this locally in your dev environment..
#

# prepare the environment
source "$HOME/.profile"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

npm ci --production

pm2 restart director || pm2 start "npm run director --silent" --name director
Expand Down

0 comments on commit 290c55f

Please sign in to comment.