rails8-memoapp/bin/dev

12 lines
259 B
Text
Raw Permalink Normal View History

2025-02-20 22:46:52 +09:00
#!/usr/bin/env sh
2025-02-24 22:51:13 +09:00
if gem list --no-installed --exact --silent foreman; then
2025-02-20 22:46:52 +09:00
echo "Installing foreman..."
gem install foreman
fi
# Default to port 3000 if not specified
export PORT="${PORT:-3000}"
2025-02-24 22:51:13 +09:00
exec foreman start -f Procfile.dev --env /dev/null "$@"