Commit 0a80019
committed
Print "Running via Spring preloader" message from the app process
Rather than from the Spring client process. See
https://github.com/rails/spring/pull/455/files#r48411471
Within the app process, we'll have access to the spring config, to see
whether Spring.quiet has been set.
This means we can remove the spring/commands require from the client
side, which should never have been added and caused problems (#456, #457).
I'm getting rid of the feature which omits this message when run
manually (i.e. `spring rails runner ...` rather than `bin/rails runner
...`) because:
1. It makes the implementation more complicated
2. YAGNI1 parent 8fff76c commit 0a80019
File tree
5 files changed
+7
-10
lines changed- bin
- lib/spring
- client
- test
5 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | | - | |
143 | | - | |
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
| |||
0 commit comments