Skip to content

Commit

Permalink
redeploying
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishab87 committed Jun 27, 2024
1 parent 6dcfad3 commit 05f0d1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions backend/primary-backend/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,14 @@
"version": "1.0.0",
"main": "./src/index.js",
"scripts": {
"start": "node ./src/index.js",
"dev": "ts-node src/index.ts"
"start": "node ."
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@prisma/client": "^5.14.0",
"@types/bcrypt": "^5.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/express-fileupload": "^1.5.0",
"@types/jsonwebtoken": "^9.0.6",
"@types/nodemailer": "^6.4.15",
"@types/otp-generator": "^4.0.2",
"@types/redis": "^4.0.11",
"@types/uuid": "^10.0.0",
"@types/ws": "^8.5.10",
"bcrypt": "^5.1.1",
"cloudinary": "^2.2.0",
"cookie-parser": "^1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion backend/primary-backend/build/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ app.options('*', (0, cors_1.default)({
allowedHeaders: ['Origin', 'Content-Type', 'Authorization'], // Headers allowed in preflight
credentials: true, // Allow credentials (cookies, tokens, etc.)
}));
const wss = new ws_1.default.Server({ port: 8080 });
const wss = new ws_1.default.Server({ port: process.env.PORT || 6000});
const tempDir = path_1.default.join(__dirname, '/temp');
if (!fs_1.default.existsSync(tempDir)) {
fs_1.default.mkdirSync(tempDir, { recursive: true });
Expand Down

0 comments on commit 05f0d1b

Please sign in to comment.