diff --git a/.github/workflows/main_gather-app-307.yml b/.github/workflows/main_gather-app-307.yml index 0c80943..7140a63 100644 --- a/.github/workflows/main_gather-app-307.yml +++ b/.github/workflows/main_gather-app-307.yml @@ -24,8 +24,8 @@ jobs: - name: npm install, build, and test run: | npm install --workspaces=false --legacy-peer-deps - npm run -w backend build --if-present - npm run -w backend test --if-present + npm run build -w backend build --if-present + npm run test -w backend test --if-present working-directory: backend - name: Zip artifact for deployment diff --git a/backend/index.ts b/backend/index.ts index 9acaf81..1506d9d 100644 --- a/backend/index.ts +++ b/backend/index.ts @@ -73,11 +73,7 @@ app.use((err: Error, req: Request, res: Response, next: NextFunction) => { res.status(500).send("Something went wrong!"); }); -// const PORT = process.env.PORT || 3001; -// app.listen(PORT, () => { -// console.log(`Server is running on port ${PORT}`); -// }); -const port = 8000; //testing if this works -app.listen(process.env.PORT || port, () => { - console.log("REST API is listening."); +const PORT = process.env.PORT || 3001; +app.listen(PORT, () => { + console.log(`Server is running on port ${PORT}`); });