Skip to content

Commit

Permalink
Support a PORT environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearsandwich committed Apr 26, 2013
1 parent 1456efa commit a30dc36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .gitignore
@@ -1,6 +1,8 @@
.DS_Store
.bundle
.env
.idea
Thumbs.db
.rvmrc
.ruby-version
.rvmrc
.sass-cache
Thumbs.db
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -24,5 +24,5 @@ end

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

0 comments on commit a30dc36

Please sign in to comment.