Skip to content

Commit

Permalink
Try to fix entrypoint
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Sachivka <juicy.igor@gmail.com>
  • Loading branch information
isachivka committed May 15, 2023
1 parent 7e6d897 commit 1bc8a04
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
.env
7 changes: 3 additions & 4 deletions .sequelizerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');
module.exports = {
'config': path.resolve('database', 'config.js'),
'models-path': path.resolve('src/pg', 'models'),
'seeders-path': path.resolve('database', 'seeders'),
'migrations-path': path.resolve('database', 'migrations')
'config': path.resolve('src/pg', 'config.js'),
'models-path': path.resolve('src/pg'),
'migrations-path': path.resolve('src/pg', 'migrations')
};
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ RUN npm run build

EXPOSE 3000

ENTRYPOINT npm run migrate && node dist/index.js
ENTRYPOINT ["npm", "run", "start"]

Empty file removed dist/.keep
Empty file.
Empty file removed dist/images/.keep
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"start": "npm run migrate && node dist/index.js",
"dev": "nodemon src/index.ts",
"dockerhub": "docker build -t isachivka/gpt --platform=linux/amd64 . && docker push isachivka/gpt",
"migrate": "sequelize-cli db:migrate"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pg/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Sequelize from "sequelize";
import cfg from "../../database/config";
import cfg from "./config";
import user from "./user";

const db = {};
Expand Down

0 comments on commit 1bc8a04

Please sign in to comment.