Skip to content

Instantly share code, notes, and snippets.

@pyykkis
Created August 21, 2013 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pyykkis/6298695 to your computer and use it in GitHub Desktop.
Save pyykkis/6298695 to your computer and use it in GitHub Desktop.
Listen two http on two different ports
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