This file contains 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 PORT = process.env.PORT; | |
var http = require('http'); | |
var server = http.createServer(function (req, res) { | |
res.writeHead(200, {"Content-Type" : "text/plain"}); | |
res.end("hello world"); | |
}); | |
server.listen(PORT); |
Commit your changes via the Cloud 9 git interface. Then all you have to do is click the Deploy button in Cloud 9, sign in to Heroku, create your new instance, and deploy. If you haven't created a package.json or Procfile (needed for Heroku deploy), Cloud 9 will create those for you. My hello world is at http://cheese.herokuapp.com/