Created
August 21, 2013 18:59
-
-
Save pyykkis/6298695 to your computer and use it in GitHub Desktop.
Listen two http on two different ports
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
express = require 'express' | |
http = require 'http' | |
app = express() | |
app.get '/hello', (_, res) -> res.send "Hello world!" | |
http.createServer(app).listen 3000 | |
http.createServer(app).listen 3010 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment