Auto-create .sync_connection via printf command in bootstrap
Replace 'Save this to .sync_connection' prose with actual printf command that Claude/user executes. Fix heredoc indentation in bootstrap.yaml.
This commit is contained in:
parent
b0e4749b0d
commit
021c453ea6
2 changed files with 3 additions and 10 deletions
|
|
@ -137,11 +137,7 @@ setup:
|
|||
mkdir -p ./user/duckdb ./user/notifications ./user/artifacts ./user/scripts ./user/parquet ./user/sessions
|
||||
|
||||
# Save connection details for sync_data.sh to use when generating CLAUDE.md
|
||||
cat > ./.sync_connection << 'CONN'
|
||||
ssh_alias={ssh_alias}
|
||||
server_host={server_host}
|
||||
webapp_url={webapp_url}
|
||||
CONN
|
||||
printf "ssh_alias={ssh_alias}\nserver_host={server_host}\nwebapp_url={webapp_url}\n" > ./.sync_connection
|
||||
message: |
|
||||
Project structure created (server/, user/).
|
||||
|
||||
|
|
|
|||
|
|
@ -2447,13 +2447,10 @@
|
|||
+ ' IdentityFile ' + sshKey + '\n'
|
||||
+ ' StrictHostKeyChecking accept-new\n'
|
||||
+ ' Then test: ssh ' + sshAlias + ' echo ok\n\n'
|
||||
+ '2. Create project folders and save connection details:\n'
|
||||
+ '2. Create project folders:\n'
|
||||
+ ' mkdir -p server/docs server/scripts server/parquet server/metadata server/examples\n'
|
||||
+ ' mkdir -p user/duckdb user/notifications user/artifacts user/scripts user/parquet user/sessions\n'
|
||||
+ ' Save this to .sync_connection (used by sync script to generate CLAUDE.md):\n'
|
||||
+ ' ssh_alias=' + sshAlias + '\n'
|
||||
+ ' server_host=' + serverHost + '\n'
|
||||
+ ' webapp_url=' + webappUrl + '\n\n'
|
||||
+ ' printf "ssh_alias=' + sshAlias + '\\nserver_host=' + serverHost + '\\nwebapp_url=' + webappUrl + '\\n" > .sync_connection\n\n'
|
||||
+ '3. Download from server via rsync (use --no-perms --no-group to avoid macOS permission errors).\n'
|
||||
+ ' Skip directories that don\'t exist on the server (rsync exit code 23 = missing source).\n'
|
||||
+ ' rsync -avz --no-perms --no-group ' + sshAlias + ':server/scripts/ ./server/scripts/\n'
|
||||
|
|
|
|||
Loading…
Reference in a new issue