feat: allow choice of port

This commit is contained in:
Aidan 2025-04-18 18:48:52 -04:00
parent 279abe89d9
commit 374f7112b3
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
MIGRATE_TXT="migrate.txt" MIGRATE_TXT="migrate.txt"
DB_FILE_NAME="db.sqlite3" DB_FILE_NAME="db.sqlite3"
MAILCONNECT_ROOT_DIR="/app" MAILCONNECT_ROOT_DIR="/app"
PORT=3000

View File

@ -46,7 +46,7 @@ app.post("/accounts/update/password", updatePassword);
app.post("/accounts/add", addAccount); app.post("/accounts/add", addAccount);
app.post("/accounts/delete", deleteAccount); app.post("/accounts/delete", deleteAccount);
const PORT = 3000; const PORT = process.env.PORT || 3000;
app.listen(PORT, () => { app.listen(PORT, () => {
figlet('mail-connect', (err, data) => { figlet('mail-connect', (err, data) => {
if (err) { if (err) {