Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.6.5

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

## 1.6.4

* Fix incompatibility with RubyGems 2.6.0.
Expand Down
10 changes: 5 additions & 5 deletions lib/spring/client/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ def verify_server_version
server_version = server.gets.chomp
if server_version != env.version
$stderr.puts <<-ERROR
There is a version mismatch between the spring client and the server.
You should restart the server and make sure to use the same version.

CLIENT: #{env.version}, SERVER: #{server_version}
There is a version mismatch between the spring client (#{env.version}) and the server (#{server_version}).
Restarting to resolve.
ERROR
exit 1

stop_server
cold_run
end
end

Expand Down