Define Heroku SSL environments

This commit is contained in:
Kristian Polso 2018-03-29 09:28:54 +03:00
parent 2a2b2550c0
commit 1a5a11e3e4

View file

@ -9,7 +9,7 @@ app = express();
app.use(serveStatic(__dirname + "/dist")); app.use(serveStatic(__dirname + "/dist"));
// enable ssl redirect // enable ssl redirect
app.use(sslRedirect()); app.use(sslRedirect(['other','development', 'staging', 'production']));
var port = process.env.PORT || 8080; var port = process.env.PORT || 8080;
app.listen(port); app.listen(port);