зеркало из https://github.com/mozilla/makedrive.git
Fix Issues #139 - port should not be hardcoded
This commit is contained in:
Родитель
3fd2f90c4e
Коммит
c5498c298a
|
@ -1,5 +1,5 @@
|
|||
env:
|
||||
- "PORT=3000 ALLOWED_CORS_DOMAINS=\"http://localhost:5001\" NODE_ENV=\"development\" ENABLE_GELF_LOGS=false SESSION_SECRET=\"secret value\" FORCE_SSL=false LOGIN_SERVER_URL_WITH_AUTH=\"http://localhost:3000\""
|
||||
- "PORT=9090 ALLOWED_CORS_DOMAINS=\"http://localhost:5001\" NODE_ENV=\"development\" ENABLE_GELF_LOGS=false SESSION_SECRET=\"secret value\" FORCE_SSL=false LOGIN_SERVER_URL_WITH_AUTH=\"http://localhost:3000\""
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
|
|
|
@ -62,9 +62,9 @@ function corsOptions ( req, res ) {
|
|||
// Declare routes
|
||||
routes( app );
|
||||
|
||||
port = env.get( "PORT", 9090 );
|
||||
port = process.env.PORT || env.get( "PORT", 9090 );
|
||||
var server = http.createServer( app );
|
||||
server.listen(9090);
|
||||
server.listen(port);
|
||||
|
||||
socketServer( server );
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче