Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple static site on Heroku with Node.js
var express = require('express');
var port = process.env.PORT || 3000;
var app = express.createServer();
app.get('/', function(request, response) {
response.sendfile(__dirname + '/index.html');
}).configure(function() {
app.use('/images', express.static(__dirname + '/images'));
}).listen(port);
@nicolasdiazoff

This comment has been minimized.

Copy link

@nicolasdiazoff nicolasdiazoff commented Sep 11, 2017

sorry not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment