add watch-core-build script that watches locally build and uploads

This commit is contained in:
Leons Aleksandrovs
2025-11-10 14:58:29 +02:00
parent 67351bfc24
commit b610b8a2dd
2 changed files with 105 additions and 2 deletions

View File

@@ -121,7 +121,6 @@ echo "{
echo -e "${GREEN}.vscode/sftp.json created successfully${NC}"
# Add upload core build script
# Add variables to upload core script
echo "
#!/bin/bash
@@ -137,4 +136,22 @@ SERVER_PATH=\"${SERVER_PROJECT_PATH}/public\" # Public folders location on serve
# Append the rest of the upload core build script
cat "${SCRIPT_DIR}/upload-core-build.sh" >> upload-core-build.sh
echo -e "${GREEN}upload-core-build.sh created successfully${NC}"
echo -e "${GREEN}upload-core-build.sh created successfully${NC}"
# Add watch core build script
# Add variables to upload core script
echo "
#!/bin/bash
set -e
# Configuration
SERVER_USER=\"${USERNAME}\"
SERVER_HOST=\"${HOST}\"
SERVER_PASSWORD=\"${SSH_PASSWORD}\"
SERVER_PATH=\"${SERVER_PROJECT_PATH}/public\" # Public folders location on server
" > watch-core-build.sh
# Append the rest of the watch core build script
cat "${SCRIPT_DIR}/watch-core-build.sh" >> watch-core-build.sh
echo -e "${GREEN}watch-core-build.sh created successfully${NC}"