File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -88,30 +88,27 @@ def with_dev_server
88
88
yield
89
89
ensure
90
90
# Kill the server process
91
- puts "Killing webpack dev server"
91
+ # puts "Killing webpack dev server"
92
92
check_cmd = "lsof -i :8080 -S"
93
- kill_cmd = "kill -9 #{ webpack_dev_server } "
94
- `#{ kill_cmd } `
95
- 30 . times do
96
- puts check_cmd
93
+ 10 . times do
94
+ # puts check_cmd
97
95
status = `#{ check_cmd } `
98
- puts status
96
+ # puts status
99
97
remaining_pid_match = status . match ( /\n [a-z]+\s +(\d +)/ )
100
98
if remaining_pid_match
101
99
remaining_pid = remaining_pid_match [ 1 ]
102
- puts "Remaining #{ remaining_pid } "
100
+ # puts "Remaining #{remaining_pid}"
103
101
kill_cmd = "kill -9 #{ remaining_pid } "
104
- puts kill_cmd
105
- puts `#{ kill_cmd } `
102
+ # puts kill_cmd
103
+ `#{ kill_cmd } `
106
104
sleep 0.5
107
105
else
108
- puts "Break"
109
106
break
110
107
end
111
108
end
112
109
113
110
# Remove the dev-server packs:
114
111
WebpackerHelpers . clear_webpacker_packs
115
- puts "Killed."
112
+ # puts "Killed."
116
113
end
117
114
end
You can’t perform that action at this time.
0 commit comments