This commit is contained in:
Markos Gogoulos
2025-05-23 11:32:38 +03:00
parent 301c4dbe9e
commit f39de968c8
5 changed files with 13 additions and 22 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
#!/bin/bash
# This script builds the video editor package and deploys the frontend assets to the static directory.
# Exit on any error
set -e
@@ -13,7 +14,7 @@ cd ../../
# Run npm build in the frontend container
echo "Building frontend assets..."
docker compose -f docker-compose/docker-compose-dev-updated.yaml exec frontend npm run dist
docker compose -f docker-compose-dev.yaml exec frontend npm run dist
# Copy static assets to the static directory
echo "Copying static assets..."
@@ -21,6 +22,6 @@ cp -r frontend/dist/static/* static/
# Restart the web service
echo "Restarting web service..."
docker compose -f docker-compose/docker-compose-dev-updated.yaml restart web
docker compose -f docker-compose-dev.yaml restart web
echo "Build and deployment completed successfully!"