add watch-core-build script that watches locally build and uploads
This commit is contained in:
@@ -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}"
|
||||
Reference in New Issue
Block a user