kill-the-newsletter/configuration.local.js

15 lines
485 B
JavaScript

module.exports = (require) => {
const killTheNewsletter = require(".").default;
const { webApplication, emailApplication } = killTheNewsletter(__dirname);
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")}`
);
});
};