Skip to content

Instantly share code, notes, and snippets.

@mtrunkat
Last active March 5, 2020 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtrunkat/e8699de59313dcb8899a7403ec7fd366 to your computer and use it in GitHub Desktop.
Save mtrunkat/e8699de59313dcb8899a7403ec7fd366 to your computer and use it in GitHub Desktop.
const express = require('express');
const { APIFY_CONTAINER_PORT, APIFY_CONTAINER_URL } = process.env;
const app = express()
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(APIFY_CONTAINER_PORT, () => {
console.log(`Web server is listening at port ${APIFY_CONTAINER_PORT} and can be accessed at ${APIFY_CONTAINER_URL}!`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment