Have you tested this line with things both enabled and disabled? I'm weary of the order of operation. May want to use parantheses on `app.listen` to be safe:

    @server = app.listen(process.env.PORT || 8080) if httpd