Skip to content

Commit a30dc36

Browse files
Support a PORT environment variable.
1 parent 1456efa commit a30dc36

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.DS_Store
2+
.bundle
3+
.env
24
.idea
3-
Thumbs.db
4-
.rvmrc
55
.ruby-version
6+
.rvmrc
67
.sass-cache
8+
Thumbs.db

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ end
2424

2525
desc "run the site locally (visit http://localhost:9292)"
2626
task :run do
27-
rerun "rackup -s thin"
27+
rerun "rackup -s thin -p #{ENV['PORT'] || 9292}"
2828
end

0 commit comments

Comments
 (0)