Skip to content

Commit

Permalink
exec vps_update_projects script
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Jun 25, 2024
1 parent 561d1de commit 62ba0fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/vps_update_projects
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

set -eu
cd "$PROJECTS" || exit 1
cd "${PROJECTS:-$HOME/code/projects}" || exit 1

git stash && git stash drop
git pull || true
yarn prod-update
yarn prod-build && yarn prod-server
yarn prod-build && exec yarn prod-server
2 changes: 1 addition & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ stdout_logfile=%(ENV_CHECKER_MAL_LOGS)s/out.log
stderr_logfile=%(ENV_CHECKER_MAL_LOGS)s/err.log

[program:projects]
command=sh -c 'yarn prod-update; yarn prod-build && yarn prod-server'
command=sh -c 'vps_update_projects'
process_name=projects
directory=%(ENV_PROJECTS)s
autorestart=true
Expand Down

0 comments on commit 62ba0fe

Please sign in to comment.