Skip to content

Commit

Permalink
Merge pull request #222 from MAPC/igmh/hotfix
Browse files Browse the repository at this point in the history
Add port to pgsql2shp command
  • Loading branch information
iangmhill authored Jul 17, 2018
2 parents d5d5d07 + 0bd67c9 commit 984d2fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rails/app/models/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def self.to_shp(sql)
arguments = []
arguments << "-f #{Rails.root.join('public', file_name)}"
arguments << "-h #{database['host']}" if database['host']
arguments << "-p #{database['port']}" if database['port']
arguments << "-u #{database['username']}" if database['username']
arguments << "-P #{database['password']}" if database['password']
arguments << database['database']
Expand Down

0 comments on commit 984d2fb

Please sign in to comment.