[m] feat: allow choice of port

This commit is contained in:
Aidan 2025-04-18 18:53:33 -04:00
parent 6a5b5cee47
commit ec25e6efbd
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
MIGRATE_TXT="migrate.txt"
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/delete", deleteAccount);
const PORT = 3000;
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
figlet('mail-connect', (err, data) => {
if (err) {