Define Heroku SSL environments
This commit is contained in:
parent
2a2b2550c0
commit
1a5a11e3e4
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ app = express();
|
|||
app.use(serveStatic(__dirname + "/dist"));
|
||||
|
||||
// enable ssl redirect
|
||||
app.use(sslRedirect());
|
||||
app.use(sslRedirect(['other','development', 'staging', 'production']));
|
||||
|
||||
var port = process.env.PORT || 8080;
|
||||
app.listen(port);
|
||||
|
|
Loading…
Reference in a new issue