Skip to content

Commit 3d05925

Browse files
fix: address PR review - use npm ci --omit=dev, create server/static dir before copy
1 parent 14f61f8 commit 3d05925

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/deploy.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ if ($continue -eq "y" -or $continue -eq "Y") {
136136
npm run build
137137

138138
# Copy built files to server directory
139+
New-Item -ItemType Directory -Force "$ProjectDir\src\app\server\static" | Out-Null
139140
Copy-Item -Path "$ProjectDir\src\app\static\*" -Destination "$ProjectDir\src\app\server\static\" -Recurse -Force
140141

141142
Set-Location "$ProjectDir\src\app\server"

scripts/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
134134
npm run build
135135

136136
# Copy built files to server directory
137+
mkdir -p "$PROJECT_DIR/src/app/server/static"
137138
cp -r "$PROJECT_DIR/src/app/static/"* "$PROJECT_DIR/src/app/server/static/"
138139

139140
cd "$PROJECT_DIR/src/app/server"

0 commit comments

Comments
 (0)