Skip to content

Commit

Permalink
mysql port support added
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Oct 8, 2013
1 parent c02e051 commit 9dce2d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ staging:
user: "user"
password: "password"
host: "host"
# port: "3308" # Use just in case you have exotic server config

exclude:
- ".git/"
Expand Down
1 change: 1 addition & 0 deletions lib/wordmove/deployer/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def adapt_sql(save_to_path, local, remote)
def mysql_dump_command(options, save_to_path)
arguments = [ "mysqldump" ]
arguments << "--host=#{options[:host]}" if options[:host].present?
arguments << "--port=#{options[:port]}" if options[:port].present?
arguments << "--user=#{options[:user]}" if options[:user].present?
arguments << "--password=#{options[:password]}" if options[:password].present?
arguments << "--default-character-set=#{options[:charset]}" if options[:charset].present?
Expand Down
1 change: 1 addition & 0 deletions lib/wordmove/generators/Movefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ staging:
user: "user"
password: "password"
host: "host"
# port: "3308" # Use just in case you have exotic server config

exclude:
- ".git/"
Expand Down

0 comments on commit 9dce2d8

Please sign in to comment.