Last active
March 5, 2020 12:03
-
-
Save mtrunkat/e8699de59313dcb8899a7403ec7fd366 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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