Skip to content

Instantly share code, notes, and snippets.

@twhite96 twhite96/server.js
Created Sep 17, 2016

What would you like to do?
Serving static files with an Express server on Heroku
var express = require('express');
var app = express();
var port = process.env.PORT || 8080;
app.get('/', function (req, res) {
res.send('Hello World!');
app.listen(port, function () {
console.log('Example app listening on port 3000!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.