Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

show 'test' as default subdomain in welcome hint #550

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/http_server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ module.exports = class HttpServer extends connect.HTTPServer
handleWelcomeRequest: (req, res, next) =>
return next() if req.pow.root or req.url isnt "/"
{domains} = @configuration
domain = if "dev" in domains then "dev" else domains[0]
domain = if "test" in domains then "test" else domains[0]
renderResponse res, 200, "welcome", {version, domain}

# If the request is for an app that looks like a Rails 2 app but
Expand Down