Deploy to Heroku using Docker

This commit is contained in:
Adam Miskiewicz
2017-10-20 14:54:25 -07:00
parent 1ca407b5ec
commit c5851fc940
3 changed files with 33 additions and 5 deletions

View File

@@ -76,6 +76,7 @@ const app = express();
app.get('/', AppHandler);
app.use(express.static(join(__dirname, '../public')));
app.get('*', AppHandler);
app.listen(3000, () => {
console.log('Started on 3000!');
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Started on ${PORT}!`);
});