Skip to content

Commit

Permalink
Run asset foreman on 3001 to avoid clashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Aug 29, 2024
1 parent b77898d commit 86074ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/assets
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ if gem list --no-installed --exact --silent foreman; then
gem install foreman
fi

# Default to port 3000 if not specified
export PORT="${PORT:-3000}"
# Default to port 3001 if not specified
# We do 3001 here because 3000 is used by the Rails server
export PORT="${PORT:-3001}"

exec foreman start -f Procfile.assets "$@"

0 comments on commit 86074ad

Please sign in to comment.