kill-the-newsletter/configuration.local.js

13 lines
477 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")}`);
});
2021-03-13 11:45:13 +01:00
emailApplication.listen(new URL(webApplication.get("email")).port, () => {
console.log(`Email server started at port ${webApplication.get("email")}`);
2021-03-10 11:30:08 +01:00
});
};