Skip to content

Commit 26b9d99

Browse files
committed
Added commands to create the src directory in the new release
Added a copy operation to include the src directory contents
1 parent d2ed4bd commit 26b9d99

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/deploy.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ echo "📦 Extracting deployment package..."
2525
# Extract the deployment package
2626
tar -xzf /tmp/deployment.tar.gz -C $NEW_RELEASE_DIR
2727

28+
# Ensure src directory exists
29+
mkdir -p $NEW_RELEASE_DIR/src
30+
cp -r $NEW_RELEASE_DIR/../src $NEW_RELEASE_DIR/
31+
2832
echo "📋 Installing dependencies..."
2933
# Install only production dependencies
3034
cd $NEW_RELEASE_DIR
@@ -118,4 +122,4 @@ ls -dt $RELEASES_DIR/* | tail -n +6 | xargs -r rm -rf
118122

119123
echo "🎉 Deployment completed successfully!"
120124
echo "📊 Application status:"
121-
pm2 status
125+
pm2 status

0 commit comments

Comments
 (0)