0
0
Fork 0

Add bin/dev script to launch foreman (#28242)

This commit is contained in:
Matt Jankowski 2024-03-02 13:31:43 -05:00 committed by GitHub
parent b6b94c971f
commit 64b8ba36bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 12 deletions

20
bin/dev Executable file
View file

@ -0,0 +1,20 @@
#!/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 "$@"