feat: Web concurrency (#2347)
* feat: Fork multiple processes * Remove boxen * comment * chore: Add support for Heroku DATABASE_CONNECTION_POOL_URL closes #2306
This commit is contained in:
@ -234,10 +234,12 @@ server.on("listening", () => {
|
||||
console.log(`\n> Listening on http://localhost:${address.port}\n`);
|
||||
});
|
||||
|
||||
(async () => {
|
||||
export async function start(id: string) {
|
||||
console.log(`Started worker ${id}`);
|
||||
|
||||
await checkMigrations();
|
||||
server.listen(process.env.PORT || "3000");
|
||||
})();
|
||||
}
|
||||
|
||||
export const socketio = io;
|
||||
|
||||
|
Reference in New Issue
Block a user