kill-the-newsletter/configuration.development.js

16 lines
531 B
JavaScript
Raw Normal View History

2021-03-10 11:30:08 +01:00
module.exports = (require) => {
2021-03-14 00:47:28 +01:00
const path = require("path");
2021-03-10 11:30:08 +01:00
const killTheNewsletter = require(".").default;
2021-03-14 00:47:28 +01:00
const { webApplication, emailApplication } = killTheNewsletter(
path.join(__dirname, "data")
);
2021-03-10 11:30:08 +01:00
webApplication.listen(new URL(webApplication.get("url")).port, () => {
console.log(`Web server started at ${webApplication.get("url")}`);
});
2021-03-13 11:45:13 +01:00
emailApplication.listen(new URL(webApplication.get("email")).port, () => {
2021-03-14 23:22:40 +01:00
console.log(`Email server started at ${webApplication.get("email")}`);
2021-03-10 11:30:08 +01:00
});
};