Skip to content

Commit 02b2477

Browse files
committed
Default to port 3000 while allowing override
With this configuration `bin/dev` will use port 3000, but `bin/dev -p 3001` will correctly start the server on port 3001.
1 parent b105031 commit 02b2477

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/install/Procfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: unset PORT && bin/rails server
1+
web: bin/rails server
22
js: yarn build --watch

lib/install/dev

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

8+
export PORT=3000
89
exec foreman start -f Procfile.dev "$@"

0 commit comments

Comments
 (0)