Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tombell committed Apr 9, 2013
1 parent fb34ed1 commit ce2ea29
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/robot.coffee
Expand Up @@ -220,28 +220,19 @@ class Robot
#
# Returns nothing.
setupExpress: ->
# Load config.
user = process.env.EXPRESS_USER
pass = process.env.EXPRESS_PASSWORD

stat = process.env.EXPRESS_STATIC
sockets = process.env.EXPRESS_SOCKETS

# Require express.
express = require 'express'

# Initialize server and middleware.
app = express()

app.use express.basicAuth user, pass if user and pass
app.use express.query()
app.use express.bodyParser()
app.use express.static stat if stat

# Listen to incoming requests.
@server = app.listen process.env.PORT || 8080

# Expose express app as router.
@router = app

herokuUrl = process.env.HEROKU_URL
Expand Down

0 comments on commit ce2ea29

Please sign in to comment.