Updates for th e mantra site
This commit is contained in:
12
mantra.press.js
Normal file
12
mantra.press.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const db = require('mantra-db-models');
|
||||
const server = require('./server/server.js')();
|
||||
|
||||
db.init().then(() => {
|
||||
console.log("Loaded DB.");
|
||||
return server.run(db);
|
||||
}).then((port) => {
|
||||
console.log("Server is running on: ", port);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Failed to run server: ", error);
|
||||
})
|
||||
Reference in New Issue
Block a user