Skip to content

Instantly share code, notes, and snippets.

@gorkamu
Last active September 16, 2017 14:36
Show Gist options
  • Save gorkamu/3d13474b71d5f7601c18ee1f9add19f1 to your computer and use it in GitHub Desktop.
Save gorkamu/3d13474b71d5f7601c18ee1f9add19f1 to your computer and use it in GitHub Desktop.
Fichero server.js para el ejemplo de uso de Docker con Nodejs
'use strict';
const express = require('express');
// Constantes
const PORT = 8080;
const HOST = '0.0.0.0';
// App
const app = express();
app.get('/', (req, res) => {
res.send('Que pasa gandul!\n');
});
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment