mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-11 21:43:15 -08:00
20 lines
412 B
Text
20 lines
412 B
Text
|
|
#!/usr/bin/env sh
|
||
|
|
|
||
|
|
# Default to port 3000 if not specified
|
||
|
|
export PORT="${PORT:-3000}"
|
||
|
|
|
||
|
|
# Get around our boot.rb ENV check
|
||
|
|
export RAILS_ENV="${RAILS_ENV:-development}"
|
||
|
|
|
||
|
|
if command -v overmind &> /dev/null
|
||
|
|
then
|
||
|
|
overmind start -f Procfile.dev "$@"
|
||
|
|
exit $?
|
||
|
|
fi
|
||
|
|
|
||
|
|
if gem list --no-installed --exact --silent foreman; then
|
||
|
|
echo "Installing foreman..."
|
||
|
|
gem install foreman
|
||
|
|
fi
|
||
|
|
|
||
|
|
foreman start -f Procfile.dev "$@"
|