Created
January 23, 2018 17:31
-
-
Save althaffe/a34925a06f4309af99057a2163f590a8 to your computer and use it in GitHub Desktop.
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 express = require('express') | |
var path = require('path') | |
var serveStatic = require('serve-static') | |
require('dotenv').config() | |
app = express() | |
app.use(serveStatic(__dirname + "/dist")) | |
var port = process.env.PORT || 5000 | |
app.listen(port) | |
console.log('server started '+ port) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment