summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2023-10-20 00:11:37 -0400
committerCarson Fleming <cflems@cflems.net>2023-10-20 00:11:37 -0400
commitab87bf915cbef62d5032b47540e593442c780193 (patch)
tree9634f6113c6b7fbaeaf4166e760bb08e0072a19e /index.js
parentc6d0cd3fca3cc9cacdb4c5a88797d00ae5560841 (diff)
downloadfle.ms-ab87bf915cbef62d5032b47540e593442c780193.tar.gz
Change config format
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.js b/index.js
index db64231..ac4893a 100644
--- a/index.js
+++ b/index.js
@@ -6,7 +6,7 @@ const apiRoutes = require('./api-routes.js');
async function serve() {
try {
- await mongoose.connect(config.MONGO_URI, {
+ await mongoose.connect(config.MONGO, {
useNewUrlParser: true,
useUnifiedTopology: true
});
@@ -27,8 +27,7 @@ async function serve() {
app.use('/api', apiRoutes);
app.use('/', routes);
- const PORT = config.PORT || 80;
- app.listen(PORT, () => {
+ app.listen(config.BIND || 8080, () => {
console.log('[express] Webserver started.');
});
}