Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring doesnt notice changes in .yml files #525

Closed
divyanshu707 opened this issue May 27, 2017 · 2 comments
Closed

Spring doesnt notice changes in .yml files #525

divyanshu707 opened this issue May 27, 2017 · 2 comments

Comments

@divyanshu707
Copy link

$ bin/spring status
Spring is running:

69024 spring server | invincibles | started 3 mins ago
69316 spring app    | invincibles | started 48 secs ago | development mode

$ touch config/cable.yml
$ bin/spring status
Spring is running:

69024 spring server | invincibles | started 4 mins ago
69316 spring app    | invincibles | started 1 min ago | development mode
@brauliobo
Copy link

configure config/spring.rb

@tmr08c
Copy link

tmr08c commented Mar 14, 2020

@divyanshu707 since this is still open, I figured I'd try to expand on @brauliobo's answer to see if it helps you.

From the README:

Spring will automatically detect file changes to any file loaded when the server boots. Changes will cause the affected environments to be restarted.

The suggestion for watching files that are not loaded when the server boots is to leverage Spring.watch in your Spring config.

Based on your example, the following should work:

Spring.watch "config/cable.yml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants