Skip to content

Commit 0f49888

Browse files
Debugging workflow error.
1 parent 933dc76 commit 0f49888

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,16 @@ jobs:
4444
# =======================================================
4545
# 🐳 Docker Operations
4646
# =======================================================
47-
- name: '🚀 Build, Launch, and Update Services'
47+
- name: '� Debug: List workspace files and show package.json'
48+
run: |
49+
echo '--- DEBUG: Listing workspace files ---'
50+
ls -alh
51+
echo '--- DEBUG: Showing package.json ---'
52+
cat package.json
53+
echo '--- DEBUG: Listing node_modules/.bin if exists ---'
54+
if [ -d node_modules/.bin ]; then ls -l node_modules/.bin; else echo "node_modules/.bin does not exist"; fi
55+
56+
- name: '�🚀 Build, Launch, and Update Services'
4857
run: |
4958
# Step 1: Ensure the Docker network exists.
5059
if ! docker network ls | grep -q "codebuilder-net"; then

Dockerfile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,26 @@ RUN npm install -g pnpm
1111
COPY package.json pnpm-lock.yaml ./
1212
COPY prisma ./prisma
1313

14+
1415
# Install dependencies
15-
RUN pnpm install --unsafe-perm
16+
RUN pnpm install --unsafe-perm \
17+
&& echo '--- DEBUG: pnpm version ---' \
18+
&& pnpm --version \
19+
&& echo '--- DEBUG: node version ---' \
20+
&& node --version \
21+
&& echo '--- DEBUG: npx version ---' \
22+
&& npx --version \
23+
&& echo '--- DEBUG: prisma version (if installed) ---' \
24+
&& npx prisma --version || true \
25+
&& echo '--- DEBUG: node_modules/.bin contents ---' \
26+
&& ls -l node_modules/.bin || true
1627

1728
# Copy the rest of your application code
1829
COPY . .
1930

20-
# Run Prisma Generate
21-
RUN npx prisma generate
31+
# Debug before running prisma generate
32+
RUN echo '--- DEBUG: Running npx prisma generate ---' \
33+
&& npx prisma generate
2234

2335
# Build the application
2436
RUN pnpm build

0 commit comments

Comments
 (0)