mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-06 04:19:37 +00:00
refactor(server): update imports
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"name": "my-app",
|
||||
"scripts": {
|
||||
"dev": "tsx watch src/index.ts",
|
||||
"dev": "PORT=4000 tsx watch src/index.ts",
|
||||
"dev2": "PORT=4001 tsx watch src/index.ts",
|
||||
"tsc": "tsc --project tsconfig.json"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -47,11 +47,11 @@ const queue = new Queue({
|
||||
},
|
||||
redisClient,
|
||||
});
|
||||
const port = 4000;
|
||||
const port = process.env.PORT;
|
||||
(async () => {
|
||||
await redisClient.connect();
|
||||
await redisClient.flushAll();
|
||||
})();
|
||||
|
||||
console.log("Starting Server ✅");
|
||||
console.log("Starting Server ✅", port);
|
||||
serve({ fetch: app.fetch, port });
|
||||
|
||||
Reference in New Issue
Block a user