ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Auto Sync Setup for Frontend

Open its-me-abhishek opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. Currently, the frontend needs to manually trigger “Sync” multiple times when developing or testing changes. This becomes repetitive, especially when running the Go backend inside a Docker container. Since the backend already manages synchronization logic, it would be ideal if syncing could happen automatically based on a configuration or environment variable.

Describe the solution you'd like Add support for an auto-sync mode, configurable via an environment variable (e.g. CCSYNC_AUTO_SYNC=true).

  • When enabled, the backend periodically triggers sync jobs automatically (using a lightweight cron job or ticker).
  • The sync interval could be configurable (e.g. CCSYNC_SYNC_INTERVAL=5m).
  • This way, developers don’t need to manually click the “Sync” button repeatedly when running locally or in CI environments.

Describe alternatives you've considered

  • A manual sync loop using frontend timers — but this adds unnecessary complexity and frontend overhead.
  • Using an external cron container or script to hit the sync endpoint — but it’s less integrated and not as portable as an internal toggle.

Additional context This feature would improve developer experience, especially when running the backend in a containerized setup (e.g., Linux with Docker), where manual interaction is not practical. It could also help with automated testing and continuous syncing workflows.

its-me-abhishek avatar Nov 01 '25 16:11 its-me-abhishek

hey @its-me-abhishek , can you assign this to me ?

RajVishh avatar Nov 01 '25 16:11 RajVishh

Can also consider setting it up as a cron job in Ubuntu itself for the Docker container, running it as a systemctl process. Shall be easy to do, and provide an interface to do the same via frontend

its-me-abhishek avatar Nov 01 '25 16:11 its-me-abhishek

Can also consider setting it up as a cron job in Ubuntu itself for the Docker container, running it as a systemctl process. Shall be easy to do, and provide an interface to do the same via frontend

sure, will look into it

RajVishh avatar Nov 02 '25 01:11 RajVishh