Skip to content

Instantly share code, notes, and snippets.

@panzelva
Created June 17, 2018 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save panzelva/55f1cd6f1807fc88275c6d78b9e7c6c4 to your computer and use it in GitHub Desktop.
Save panzelva/55f1cd6f1807fc88275c6d78b9e7c6c4 to your computer and use it in GitHub Desktop.
Medium article - Deploying Express.js website to VPS with Nginx, PM2 and Ubuntu 18.04
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send("Hello World!");
});
const port = 3000;
const server = app.listen(port, () => {
console.log(`Listening on http://localhost:${port}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment