From 0bd67c9697a96373c16888ec879977f3f918c6f6 Mon Sep 17 00:00:00 2001 From: Ian Hill Date: Tue, 17 Jul 2018 13:03:07 -0400 Subject: [PATCH] Add port to pgsql2shp command --- rails/app/models/development.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/rails/app/models/development.rb b/rails/app/models/development.rb index 946ec8b4..4e2578b2 100644 --- a/rails/app/models/development.rb +++ b/rails/app/models/development.rb @@ -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']