Skip to content

Commit 890438f

Browse files
committed
init on db3
1 parent d444be3 commit 890438f

File tree

1 file changed

+7
-1
lines changed
  • app/webapp/ruby/lib/torb

1 file changed

+7
-1
lines changed

app/webapp/ruby/lib/torb/web.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,13 @@ def render_report_csv(reports)
171171
end
172172

173173
get '/initialize' do
174-
system "../../db/init.sh"
174+
system "curl http://172.18.25.3/initialize_db3"
175+
176+
status 204
177+
end
178+
179+
get '/initialize_db3' do
180+
system "/home/isucon/torb/db/init.sh"
175181

176182
status 204
177183
end

0 commit comments

Comments
 (0)