Skip to content

Commit 487a326

Browse files
committed
Specify absolute path to spring binfile when starting the server (#478)
1 parent 23f2e63 commit 487a326

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.7.1
2+
3+
* Specify absolute path to spring binfile when starting the server
4+
(#478)
5+
16
## 1.7.0
27

38
* Auto-restart server when server and client versions do not match

lib/spring/env.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def kill(sig)
110110
end
111111

112112
def server_command
113-
ENV["SPRING_SERVER_COMMAND"] || "spring _#{Spring::VERSION}_ server --background"
113+
ENV["SPRING_SERVER_COMMAND"] || "#{File.expand_path("../../../bin/spring", __FILE__)} server --background"
114114
end
115115
end
116116
end

0 commit comments

Comments
 (0)