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