Created
          July 23, 2014 01:03 
        
      - 
      
- 
        Save yefim/2b685bfe281a7e756125 to your computer and use it in GitHub Desktop. 
    500 as a Service
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var express = require("express"); | |
| var logfmt = require("logfmt"); | |
| var app = express(); | |
| app.use(logfmt.requestLogger()); | |
| app.get('/', function(req, res) { | |
| res.send(500); | |
| }); | |
| var port = Number(process.env.PORT || 5000); | |
| app.listen(port, function() { | |
| console.log("Listening on " + port); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment