File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 - name : Checkout the code
1010 uses : actions/checkout@v2
1111
12+ - name : Debug - Show directory contents
13+ run : ls -la
14+
15+ - name : Debug - Show package.json
16+ run : cat package.json
17+
1218 - name : Docker login
1319 uses : docker/login-action@v2
1420 with :
2228 file : ./docker/Dockerfile.websocket
2329 push : true
2430 tags : coderomm/collabydraw-websocket:${{ github.sha }}
31+
2532 - name : Deploy to the VM
2633 run : |
2734 echo "${{ secrets.SSH_PRIVATE_KEY }}" &> ~/ssh_key
Original file line number Diff line number Diff line change @@ -12,11 +12,24 @@ COPY ./pnpm-lock.yaml ./pnpm-lock.yaml
1212COPY ./turbo.json ./turbo.json
1313COPY ./apps/ws ./apps/ws
1414
15+ # Install global Prisma CLI
16+ RUN npm install -g prisma@6.5.0
17+
1518# Install dependencies
1619RUN pnpm install --frozen-lockfile
1720
1821# Generate database (assuming you have a db:generate script)
19- RUN pnpm run db:generate
22+ # RUN pnpm run db:generate
23+
24+ # Change to the packages/db directory and generate Prisma client
25+ WORKDIR /usr/src/app/packages/db
26+ RUN prisma generate
27+
28+ # Change back to the root directory
29+ WORKDIR /usr/src/app
30+
31+ # Build the websocket service
32+ RUN pnpm run build
2033
2134# Expose the port
2235EXPOSE 8081
Original file line number Diff line number Diff line change 1919 "engines" : {
2020 "node" : " >=18"
2121 }
22- }
22+ }
Original file line number Diff line number Diff line change 22 "name" : " @repo/db" ,
33 "version" : " 1.0.0" ,
44 "main" : " index.js" ,
5- "scripts" : {
6- "test" : " echo \" Error: no test specified\" && exit 1"
7- },
85 "exports" : {
96 "./client" : " ./src/index.ts"
107 },
1916 "prisma" : " ^6.5.0"
2017 },
2118 "dependencies" : {
22- "@prisma/client" : " 6.3.1"
19+ "@prisma/client" : " 6.5.0"
20+ },
21+ "scripts" : {
22+ "generate" : " prisma generate" ,
23+ "test" : " echo \" Error: no test specified\" && exit 1"
2324 }
2425}
You can’t perform that action at this time.
0 commit comments