kill-the-newsletter/configuration.local.js

15 lines
485 B
JavaScript
Raw Normal View History

2021-03-10 11:30:08 +01:00
module.exports = (require) => {
const killTheNewsletter = require(".").default;
2021-03-10 12:35:48 +01:00
const { webApplication, emailApplication } = killTheNewsletter(__dirname);
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")}`);
});
emailApplication.listen(webApplication.get("email port"), () => {
console.log(
`Email server started on port ${webApplication.get("email port")}`
);
});
};