-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrefresh_script.rb
More file actions
21 lines (19 loc) · 1.08 KB
/
refresh_script.rb
File metadata and controls
21 lines (19 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env ruby
while true
begin
# servers
#system('wget --quiet -O - http://production.4dyvwfpdk3.us-west-1.elasticbeanstalk.com/print_new_pics')
#system('wget --quiet -O - http://production-2.us-west-1.elasticbeanstalk.com/print_new_pics')
#system('wget --quiet -O - http://production-3.us-west-1.elasticbeanstalk.com/print_new_pics')
#system('wget --quiet -O - http://instaprinter5.us-west-1.elasticbeanstalk.com/print_new_pics')
#system('wget --quiet -O - http://instaprinter6.us-west-1.elasticbeanstalk.com/print_new_pics')
system('wget --quiet -O - http://instaprinter7.us-west-1.elasticbeanstalk.com/print_new_pics')
#system('wget --quiet -O - http://instaprinter8.us-west-1.elasticbeanstalk.com/print_new_pics')
#system('wget --quiet -O - http://instaprinter9.us-west-1.elasticbeanstalk.com/print_new_pics')
#system('wget --quiet -O - http://instaprinter10.us-west-1.elasticbeanstalk.com/print_new_pics')
sleep 10
rescue Exception => e
Rails.logger.debug "**************** ERROR IN refresh script ****************"
Rails.logger.debug e.message
end
end