Skip to content

Commit

Permalink
Update dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JuzerShakir committed Dec 21, 2024
1 parent 0b48c8e commit 511a0bc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
#!/usr/bin/env ruby
exec "./bin/rails", "server", *ARGV
#!/usr/bin/env sh

if gem list --no-installed --exact --silent foreman; then
echo "Installing foreman..."
gem install foreman
fi

# Default to port 3000 if not specified
export PORT="${PORT:-3000}"

exec foreman start -f Procfile.dev --env /dev/null "$@"

0 comments on commit 511a0bc

Please sign in to comment.