Skip to content

Commit 5f9c33c

Browse files
justin808claude
andcommitted
fix: clean up overmind socket file in bin/dev kill command
The kill command now removes .overmind.sock and tmp/sockets/overmind.sock files to prevent "Overmind is already running" errors on restart. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent eea39f1 commit 5f9c33c

File tree

1 file changed

+11
-1
lines changed
  • lib/generators/react_on_rails/bin

1 file changed

+11
-1
lines changed

lib/generators/react_on_rails/bin/dev

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,19 @@ def kill_processes
139139
end
140140
end
141141

142+
# Clean up socket files
143+
socket_files = [".overmind.sock", "tmp/sockets/overmind.sock"]
144+
socket_files.each do |socket_file|
145+
if File.exist?(socket_file)
146+
puts " 🧹 Removing #{socket_file}"
147+
File.delete(socket_file) rescue nil
148+
killed_any = true
149+
end
150+
end
151+
142152
if killed_any
143153
puts ""
144-
puts "✅ All processes terminated"
154+
puts "✅ All processes terminated and sockets cleaned"
145155
puts "💡 You can now run 'bin/dev' for a clean start"
146156
else
147157
puts " ℹ️ No development processes found running"

0 commit comments

Comments
 (0)