Detect the app binary by trying centralcloud_staff then centralcloud_my. Fixes CrashLoopBackOff when centralcloud-staff image ran /app/bin/server which was hardcoded to exec ./centralcloud_my (not found in staff image). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
8 lines
208 B
Bash
Executable file
8 lines
208 B
Bash
Executable file
#!/bin/sh
|
|
set -eu
|
|
cd -P -- "$(dirname -- "$0")"
|
|
for bin in centralcloud_staff centralcloud_my; do
|
|
[ -f "./$bin" ] && PHX_SERVER=true exec "./$bin" start
|
|
done
|
|
echo "No app binary found in $(pwd)" >&2
|
|
exit 1
|