Merge pull request #63 from justincolangelo/port-option
add port option for startup
هذا الالتزام موجود في:
@@ -99,6 +99,8 @@ $ cp app/src/config.template.js app/src/config.js
|
|||||||
$ npm install
|
$ npm install
|
||||||
# Start the server
|
# Start the server
|
||||||
$ npm start
|
$ npm start
|
||||||
|
# If you want to start the server on a different port than the default use an env var
|
||||||
|
$ PORT=3011 npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
- Open https://localhost:3010 in browser
|
- Open https://localhost:3010 in browser
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ module.exports = {
|
|||||||
hostPassword: 'password',
|
hostPassword: 'password',
|
||||||
// app listen on
|
// app listen on
|
||||||
listenIp: '0.0.0.0',
|
listenIp: '0.0.0.0',
|
||||||
listenPort: 3010,
|
listenPort: process.env.PORT || 3010,
|
||||||
// ssl/README.md
|
// ssl/README.md
|
||||||
sslCrt: '../ssl/cert.pem',
|
sslCrt: '../ssl/cert.pem',
|
||||||
sslKey: '../ssl/key.pem',
|
sslKey: '../ssl/key.pem',
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم