2025-01-02 14:45:44 +08:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2025-01-16 18:17:08 +08:00
|
|
|
if ! gem list foreman -i --silent; then
|
2025-01-02 14:45:44 +08:00
|
|
|
echo "Installing foreman..."
|
|
|
|
gem install foreman
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Default to port 3000 if not specified
|
|
|
|
export PORT="${PORT:-3000}"
|
|
|
|
|
2025-01-16 18:17:08 +08:00
|
|
|
# Let the debug gem allow remote connections,
|
|
|
|
# but avoid loading until `debugger` is called
|
|
|
|
export RUBY_DEBUG_OPEN="true"
|
|
|
|
export RUBY_DEBUG_LAZY="true"
|
|
|
|
|
|
|
|
exec foreman start -f Procfile.dev "$@"
|