We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a85d32e commit d7b21ffCopy full SHA for d7b21ff
lib/spring/application.rb
@@ -172,11 +172,6 @@ def serve(client)
172
end
173
174
175
- # Ensure we boot the process in the directory the command was called from,
176
- # not from the directory Spring started in
177
- original_dir = Dir.pwd
178
- Dir.chdir(env['PWD'] || original_dir)
179
-
180
pid = fork {
181
Process.setsid
182
IGNORE_SIGNALS.each { |sig| trap(sig, "DEFAULT") }
@@ -242,7 +237,6 @@ def serve(client)
242
237
# (i.e. to prevent `spring rake -T | grep db` from hanging forever),
243
238
# even when exception is raised before forking (i.e. preloading).
244
239
reset_streams
245
- Dir.chdir(original_dir)
246
240
247
241
248
def terminate
0 commit comments