Skip to content

Commit d7b21ff

Browse files
deivid-rodriguezjeremy
authored andcommitted
Revert "Start server process in dir where cmd was called"
This reverts commit 20d3a5f.
1 parent a85d32e commit d7b21ff

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/spring/application.rb

-6
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@ def serve(client)
172172
end
173173
end
174174

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-
180175
pid = fork {
181176
Process.setsid
182177
IGNORE_SIGNALS.each { |sig| trap(sig, "DEFAULT") }
@@ -242,7 +237,6 @@ def serve(client)
242237
# (i.e. to prevent `spring rake -T | grep db` from hanging forever),
243238
# even when exception is raised before forking (i.e. preloading).
244239
reset_streams
245-
Dir.chdir(original_dir)
246240
end
247241

248242
def terminate

0 commit comments

Comments
 (0)