Skip to content

Commit a307f22

Browse files
committed
Update bin/dev to set port
1 parent 03217f9 commit a307f22

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

demo/Procfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
web: bundle exec bin/rails server -p ${TEST_APP_PORT:-3000} -b 0.0.0.0
1+
web: bundle exec bin/rails server -b 0.0.0.0
22
js: yarn build --watch
33
css: yarn build:css --watch

demo/bin/dev

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ if ! gem list foreman -i --silent; then
55
gem install foreman
66
fi
77

8+
# Default to port 3000 if not specified
9+
export PORT="${PORT:-3000}"
10+
811
exec foreman start -f Procfile.dev "$@"

0 commit comments

Comments
 (0)