Skip to content

Commit 52caef9

Browse files
authored
Merge pull request #1 from finitydevs/change/adds-migrations
Change/adds migrations
2 parents 00ac8aa + e642e92 commit 52caef9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1466
-1099
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
Dockerfile

.sequelizerc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// .sequelizerc
2+
3+
const path = require('path');
4+
5+
module.exports = {
6+
'config': path.resolve('dist', 'sequelize_config.js'),
7+
'models-path': path.resolve('dist', 'models'),
8+
'seeders-path': path.resolve('dist', 'seeders'),
9+
'migrations-path': path.resolve('dist', 'migrations')
10+
};

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM node:14.17 as base
33
WORKDIR /usr
44
COPY /package*.json ./
55
RUN npm install --no-optional && npm cache clean --force
6-
COPY ./src ./src
6+
RUN npm i -g sequelize sequelize-cli
7+
COPY ./ ./
78

89
#dev we don't COPY in this stage because for dev you'll bind-mount anyway
910
FROM base as dev

0 commit comments

Comments
 (0)