Skip to content

Commit

Permalink
init on db3
Browse files Browse the repository at this point in the history
  • Loading branch information
nna774 committed Sep 16, 2018
1 parent d444be3 commit 890438f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/webapp/ruby/lib/torb/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,13 @@ def render_report_csv(reports)
end

get '/initialize' do
system "../../db/init.sh"
system "curl http://172.18.25.3/initialize_db3"

status 204
end

get '/initialize_db3' do
system "/home/isucon/torb/db/init.sh"

status 204
end
Expand Down

0 comments on commit 890438f

Please sign in to comment.