Skip to content

Commit

Permalink
testing node workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
palldas committed Jun 1, 2024
1 parent 8d4ad4a commit 3e4e854
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main_gather-app-307.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});

0 comments on commit 3e4e854

Please sign in to comment.