mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
19 lines
498 B
Bash
Executable File
19 lines
498 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if ! gem list foreman -i --silent; then
|
|
echo "Installing foreman..."
|
|
gem install foreman
|
|
fi
|
|
|
|
# Default to port 3000 if not specified
|
|
export PORT="${PORT:-3000}"
|
|
|
|
# Let the debug gem allow remote connections,
|
|
# but avoid loading until `debugger` is called
|
|
export RUBY_DEBUG_OPEN="true"
|
|
export RUBY_DEBUG_LAZY="true"
|
|
|
|
# Use Procfile.dev, ensure web process binds to 0.0.0.0
|
|
# (Procfile.dev should have: web: bin/rails server -b 0.0.0.0)
|
|
exec foreman start -f Procfile.dev "$@"
|