Skip to content

Commit

Permalink
prisma deployment
Browse files Browse the repository at this point in the history
Added intiialization to postgres db so table is there always
* Tweaked some config variables
  • Loading branch information
csprance committed Jul 27, 2022
1 parent 3e13dc3 commit 63f1d98
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:17
FROM node:lts

# install the application
RUN mkdir /app
Expand All @@ -11,8 +11,7 @@ EXPOSE 3000

# build and start
RUN yarn build
# deploy prisma migrate/generate
# prisma generate
RUN yarn prisma:generate
RUN yarn prisma:deploy
# start
CMD npm run start
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- gtdb:/var/lib/postgresql/data
- ./prisma/migrations/20220727171020_init/migration.sql:/docker-entrypoint-initdb.d/create_tables.sql


volumes:
Expand Down
4 changes: 0 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
module.exports = {
env: {
API_URL: process.env.API_URL || "http://next-smrt.csprance.localhost/api",
API_TOKEN: process.env.API_TOKEN || "API_TOKEN"
},
compiler: {
styledComponents: true,
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "preserve",
"incremental": true
},
"exclude": [
"node_modules"
Expand Down

0 comments on commit 63f1d98

Please sign in to comment.