Skip to content

Change/adds migrations #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
Dockerfile
10 changes: 10 additions & 0 deletions .sequelizerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// .sequelizerc

const path = require('path');

module.exports = {
'config': path.resolve('dist', 'sequelize_config.js'),
'models-path': path.resolve('dist', 'models'),
'seeders-path': path.resolve('dist', 'seeders'),
'migrations-path': path.resolve('dist', 'migrations')
};
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM node:14.17 as base
WORKDIR /usr
COPY /package*.json ./
RUN npm install --no-optional && npm cache clean --force
COPY ./src ./src
RUN npm i -g sequelize sequelize-cli
COPY ./ ./

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