Skip to content

Commit

Permalink
Update deployment source
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsingh132 committed Oct 18, 2024
1 parent c203e08 commit 2a4b346
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/.classpath
**/vercel
**/.dockerignore
**/.env
**/.git
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ EXPOSE 5000
RUN chown -R node /app

USER node
CMD ["node", "server.js"]
CMD ["node", "app.js"]
File renamed without changes.
5 changes: 3 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "ecommerceapi",
"version": "1.0.0",
"description": "",
"main": "server.js",
"main": "app.js",
"scripts": {
"start": "node server.js"
"start": "node app.js",
"vercel-build": "echo helloworld"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 4 additions & 0 deletions backend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"rewrites": [{ "source": "/(.*)", "destination": "/api" }]
}

0 comments on commit 2a4b346

Please sign in to comment.