Skip to content

Commit

Permalink
Merged. Hard-coded server IP address.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvit committed Oct 28, 2007
2 parents 3d9d757 + 3d9d757 commit cacc127
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/database.yml
Expand Up @@ -31,7 +31,7 @@ test:

production:
adapter: mysql
database: ujudge_production
database: ujudge_development
username: root
password:
host: localhost
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -20,5 +20,5 @@
# Disable delivery errors if you bad email addresses should just be ignored
#config.action_mailer.raise_delivery_errors = true

BASE_URL="/ujudge"
BASE_URL="/~jury/ujudge"
config.action_mailer.perform_deliveries = false
4 changes: 2 additions & 2 deletions lib/judge/server/server.rb
Expand Up @@ -179,12 +179,12 @@ def get_file(rel_path, remote_mtime)
end

def calculate_rating_1(contest_id)
return if Time.now.to_i < @last_rating_calculation + 30
return if Time.now.to_i < @last_rating_calculation.to_i + 30
do_calculate_rating(contest_id)
end

def calculate_rating_2(contest_id)
return unless Time.now.to_i > @last_rating_calculation + 120
return unless Time.now.to_i > @last_rating_calculation.to_i + 120
do_calculate_rating(contest_id)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/serverapi.rb
Expand Up @@ -5,7 +5,7 @@ module Server

def self.connect
@@localserver = DRb.start_service('druby://localhost:0')
@@server = DRbObject.new(nil, 'druby://localhost:15837')
@@server = DRbObject.new(nil, 'druby://193.124.208.121:15837')
end

def self.instance
Expand Down
2 changes: 1 addition & 1 deletion start-server.cmd
@@ -1 +1 @@
ruby script/drbserver
ruby script/drbserver -h 193.124.208.121
2 changes: 1 addition & 1 deletion start-web.cmd
@@ -1 +1 @@
ruby script/server
ruby script/server -p 80 -e production

0 comments on commit cacc127

Please sign in to comment.