feat: add a Railpack builder to Dokku

Closes #7615
This commit is contained in:
Jose Diaz-Gonzalez committed 2025-11-09 20:21:09 -05:00
1 parent 837c3db042
commit cba345025c
28 files changed
+682 -2

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $TRACE ]] && set -x
main() {
declare desc="re-runs railpack commands as sudo"
local RAILPACK_BIN=""
if [[ -x "/usr/bin/railpack" ]]; then
RAILPACK_BIN="/usr/bin/railpack"
fi
if [[ -z "$RAILPACK_BIN" ]]; then
echo "! No railpack binary found" 1>&2
exit 1
fi
sudo -E "$RAILPACK_BIN" "$@"
}
main "$@"