question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding support for syncing complete files

See original GitHub issue

As discussed in #147 I would like to have support for not only properties but also for syncing complete files. Imagine the following use case:

I have a file available called resources/logback.xml and also on my server a file called resources/logback.xml. As soon as I update the file on the server my local file should get “replaced” and loaded into the classpath.

The problem is, that services depend on that file (as an initial configuration) so we need something like a Java callback to initialize the affected service again if it depends on this file. This can also be applied to all kind of files (e.g. logback files, specific configuration, yaml configs for environments etc)

Is this feature still in scope of the spring-cloud-config project? I’m really looking forward to this feature and would like to help to implement it.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
spencergibbcommented, Dec 5, 2016

I can imagine syncing files in general, but updating the classpath dynamically seems a bit over the top.

0reactions
cforcecommented, Aug 12, 2018

@fliaping We trigger txt file config refresh by calling /refresh on app which gets the ASCII file from spring cloud config server using @RestTemplate. The method which does that is triggered by @EventListener that listens on refresh and app start events also. You might replace the manual call on /refresh by https://cloud.spring.io/spring-cloud-config/multi/multi__push_notifications_and_spring_cloud_bus.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sync OneDrive files and folders - Microsoft Support
Select Start, type OneDrive, and then select the OneDrive app. Sign in to OneDrive with the account you want to sync and finish...
Read more >
Sync contacts and calendars onto your Mac and iPhone, iPad ...
To add new contacts to a specific group, select the “Add new contacts from this [device] to” checkbox and choose a group from...
Read more >
Use Google Drive for desktop
Open Drive for desktop. · Click Settings Settings and then Preferences. · On the left, click Folders from Drive. · Under "My Drive...
Read more >
Sync files and folders - Dropbox.com
Save a file to the Dropbox folder on your computer, and it will synchronize automatically to your mobile device. Cloud file sync is...
Read more >
Duplicate Files With Email Address Added After Sync
Are installing or re-installing Box Sync · Then locally drag or copy content into the new Box Sync folder that is already on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found