Skip to content

Commit

Permalink
Copy deploy/bin on deploy
Browse files Browse the repository at this point in the history
This previously was a manual task described in a
comment in `import_latest_release.sh`, make it
automatic.
  • Loading branch information
Jongmassey committed Jan 14, 2025
1 parent 6380896 commit 7e2c01a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@
"type": "startup"
}
]
},
"scripts": {
"dokku": {
"predeploy": "mkdir -p /storage/deploy/bin && cp /app/deploy/bin/* /storage/deploy/bin/"
}
}
}
3 changes: 0 additions & 3 deletions deploy/bin/import_latest_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ source sentry_cron_functions.sh
# Updates to coding systems require restarting the dokku app, so this job is
# not dokku-managed

# This script should be copied to /var/lib/dokku/data/storage/opencodelists/import_latest_release.sh
# on dokku3 and run using the cronfiles in opencodelists/deploy/bin/

# SLACK_WEBHOOK_URL and SLACK_TEAM_WEBHOOK_URL are environment variables set in the cronfile on dokku3
# General notification messages (import start, complete etc) are posted to the
# SLACK_WEBHOOK_URL channel (#tech-noise). Failures are posted to the
Expand Down

0 comments on commit 7e2c01a

Please sign in to comment.