add gosync config support

This commit is contained in:
2026-02-25 23:04:15 +02:00
parent 4bd02c8a4b
commit ee4f4c4438

View File

@@ -208,6 +208,51 @@ echo "{
echo -e "${GREEN}.vscode/sftp.json created successfully${NC}"
# Create .gosync.json config file
echo "{
\"host\": \"${HOST}\",
\"user\": \"${USERNAME}\",
\"password\": \"${SSH_PASSWORD}\",
\"remoteDir\": \"${SERVER_PROJECT_PATH}\",
\"ignore\": [
\".git\",
\".gosync.json\",
\".vscode\",
\".DS_Store\",
\"node_modules\",
\"vendor\",
\"storage\",
\"uploads\",
\"temp\",
\"cache\",
\"sitepress-multilingual-cms\",
\".claude\",
\".playwright-mcp\",
\"lazygit\",
\"ssh.sh\",
\"remote-local.sh\",
\"local-remote.sh\",
\".build-cache\",
\"watch-build.sh\",
\"sftp-watch.sh\",
\"split-conflicts.sh\",
\"*.woff\",
\"*.woff2\",
\"*.ttf\",
\"*.png\",
\"*.svg\"
],
\"commandOnChange\": {
\"files\": [\"*.vue\", \"*.less\", \"*.css\", \"*.js\"],
\"command\": \"sleep 1\",
\"excludeDirs\": [\"build\"]
}
}" >.gosync.json
echo -e "${GREEN}.gosync.json created successfully${NC}"
add_to_gitignore ".gosync.json"
# Go through scripts, add variables and add them to project folder
if [ "$SFTP_ONLY" = true ]; then
# Sftp only scripts