Skip to main content

sync-lovable

Sync a Lovable Vite/React/PWA repo into a service folder.

Mirrors a Lovable.ai project export directory into a noclickops service folder. Pulls the upstream first, then rsyncs with --delete (excluding node_modules, .git, dist, .lovable, and the noclickops-managed Dockerfile/nginx/health.json/service.yaml/.pipelines/bicep). Re-renders Dockerfile + nginx.conf from templates/lovable/ and writes a fresh health.json with the source URL, short SHA, and commit date. Bash-only (rsync semantics don't map safely to PowerShell).

Category: Service lifecycle
Tags: lovable rsync vite react pwa nginx dockerfile mirror

Usage

noclickops sync-lovable <lovable-repo-path> <service>

Flags

FlagDescription
-h, --helpShow this help and exit.

Example

noclickops sync-lovable ~/learn/helpers/holderdeord test-holderdeord

Auth

None.

Depends on

  • bash
  • rsync
  • git
  • jq

Exit codes

CodeMeaning
0Synced — Dockerfile / nginx / health.json regenerated.
1Source path missing, not a Lovable project, lockfile/dirty-tree guard tripped, or template error.

See also

Full --help output

Show full --help
noclickops v1.7.6 — sync-lovable

Sync a Lovable Vite/React/PWA repo into a service folder.

Mirrors a Lovable.ai project export directory into a noclickops service folder. Pulls the upstream first, then rsyncs with --delete (excluding node_modules, .git, dist, .lovable, and the noclickops-managed Dockerfile/nginx/health.json/service.yaml/.pipelines/bicep). Re-renders Dockerfile + nginx.conf from templates/lovable/ and writes a fresh health.json with the source URL, short SHA, and commit date. Bash-only (rsync semantics don't map safely to PowerShell).

Category: service-lifecycle
Tags: lovable rsync vite react pwa nginx dockerfile mirror

Usage:
noclickops sync-lovable <lovable-repo-path> <service>

Flags:
-h, --help Show this help and exit.

Example:
noclickops sync-lovable ~/learn/helpers/holderdeord test-holderdeord

Auth:
None.

Depends on:
bash rsync git jq

Exit codes:
0 Synced — Dockerfile / nginx / health.json regenerated.
1 Source path missing, not a Lovable project, lockfile/dirty-tree guard tripped, or template error.

See also:
add-service clean-sample