[m] feat: allow choice of port
This commit is contained in:
parent
6a5b5cee47
commit
ec25e6efbd
@ -1,3 +1,4 @@
|
||||
MIGRATE_TXT="migrate.txt"
|
||||
DB_FILE_NAME="db.sqlite3"
|
||||
MAILCONNECT_ROOT_DIR="/app"
|
||||
MAILCONNECT_ROOT_DIR="/app"
|
||||
PORT=3000
|
@ -46,7 +46,7 @@ app.post("/accounts/update/password", updatePassword);
|
||||
app.post("/accounts/add", addAccount);
|
||||
app.post("/accounts/delete", deleteAccount);
|
||||
|
||||
const PORT = 3000;
|
||||
const PORT = process.env.PORT || 3000;
|
||||
app.listen(PORT, () => {
|
||||
figlet('mail-connect', (err, data) => {
|
||||
if (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user