Skip to content

Commit

Permalink
Use the correct hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hobden committed Jan 13, 2017
1 parent a4c4766 commit 3a6c0dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/make_osc.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $fields = [ 'shop', 'office', 'aerialway', 'aeroway', 'amenity', 'tourism', 'his
namespace :make_osc do
desc 'Make OSC files.'
task :full => :environment do
$conn = PGconn.open(:dbname => 'osm', :user => 'osm', :password => 'osm')
$conn = PGconn.open(:dbname => 'osm', :user => 'osm', :password => 'osm', :host => 'osm-database')
FILE_HANDLE = File.new(SHAPE_FILE, "wb")
xml = Builder::XmlMarkup.new(:target=>FILE_HANDLE, :indent => 2 )
xml.instruct! :xml, :encoding => "UTF-8"
Expand All @@ -29,7 +29,7 @@ namespace :make_osc do
end

task :diff => :environment do
$conn = PGconn.open(:dbname => 'osm', :user => 'osm', :password => 'osm')
$conn = PGconn.open(:dbname => 'osm', :user => 'osm', :password => 'osm', :host => 'osm-database')
FILE_HANDLE = File.new(SHAPE_FILE, "wb")
xml = Builder::XmlMarkup.new(:target=>FILE_HANDLE, :indent => 2 )
xml.instruct! :xml, :encoding => "UTF-8"
Expand Down

0 comments on commit 3a6c0dd

Please sign in to comment.