Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
christocracy committed Jul 4, 2008
1 parent 2c08023 commit e02629e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/geonames_tasks.rake
Expand Up @@ -13,7 +13,7 @@ namespace :geonames do
config = ActiveRecord::Base.configurations[RAILS_ENV]

["country", "country_region", "country_region_city"].each do |name|
cmd = "/usr/bin/pg_dump -U postgres -t #{name} -a #{config['database']} --format=c > #{name}.sql"
cmd = "/usr/bin/pg_dump -U postgres -t #{name} -a #{config['database']} --format=c > db/#{name}.sql"
# show cmd user before execing
puts ">#{cmd}"
puts `#{cmd}`
Expand All @@ -28,7 +28,7 @@ namespace :geonames do
config = ActiveRecord::Base.configurations[RAILS_ENV]

["country", "country_region", "country_region_city"].each do |name|
cmd = "/usr/bin/pg_restore -U postgres -t #{name} -a -d #{config['database']} --format=c < #{name}.sql"
cmd = "/usr/bin/pg_restore -U postgres -t #{name} -a -d #{config['database']} --format=c < db/#{name}.sql"
# show cmd user before execing
puts ">#{cmd}"
puts `#{cmd}`
Expand Down

0 comments on commit e02629e

Please sign in to comment.