Skip to content

Commit

Permalink
fix start
Browse files Browse the repository at this point in the history
  • Loading branch information
kenahrens committed Apr 11, 2024
1 parent b8ecc19 commit aaa6a58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN npm install

EXPOSE 8080

CMD ["npm", "start"]
CMD ["npm", "run", "start-prod"]
3 changes: 2 additions & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "middleware to call ai model",
"main": "server.js",
"scripts": {
"start": "nodemon server.js",
"start": "nodemon src/server.js",
"start-prod": "node src/server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion api/src/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'global-agent/bootstrap';
import 'global-agent/bootstrap.js';
import 'dotenv/config';
import app from './app.js'; // Note the '.js' extension
import { initializeDb } from './db/database.js';
Expand Down

0 comments on commit aaa6a58

Please sign in to comment.