-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
668bbd2
commit fed1400
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
with: | ||
version: v2.2.2 | ||
|
||
- run: npm ci | ||
- run: npm ci --production | ||
- run: npm run build | ||
- run: npm test | ||
|
||
|
@@ -45,6 +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 app && bin/serverside/redeploy" | ||
- name: 🌎 download assets | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# this script is meant to be run on the director's production server. | ||
# do not run this locally in your dev environment.. | ||
# | ||
|
||
npm ci --production | ||
|
||
pm2 restart director || pm2 start "npm run director --silent" --name director | ||
|