add port option for startup

هذا الالتزام موجود في:
Justin Colangelo
2022-08-11 14:30:44 -04:00
الأصل 791b85b0d2
التزام 243f43ebc6
2 ملفات معدلة مع 3 إضافات و1 حذوفات

عرض الملف

@@ -99,6 +99,8 @@ $ cp app/src/config.template.js app/src/config.js
$ npm install
# Start the server
$ 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

عرض الملف

@@ -32,7 +32,7 @@ module.exports = {
hostPassword: 'password',
// app listen on
listenIp: '0.0.0.0',
listenPort: 3010,
listenPort: process.env.PORT || 3010,
// ssl/README.md
sslCrt: '../ssl/cert.pem',
sslKey: '../ssl/key.pem',