部署调整去掉ssl_mode

This commit is contained in:
xxq250 2023-07-20 09:18:07 +08:00
parent 253196e000
commit d13ac9e9fe
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@ default: &default
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
wait_timeout: 10
ssl_mode: disabled
gitea_server:
adapter: mysql2
database: <%= ENV.fetch("MYSQL_DB_GITEA") { 'gitea' } %>

View File

@ -17,7 +17,7 @@ namespace :sync_table_structure do
puts "bash: mysql -u#{database_username} -p#{database_password} -P#{database_port} -h#{database_host} #{database}"
system "mysql --ssl-mode='DISABLED' -u#{database_username} -p#{database_password} -P#{database_port} -h#{database_host} #{database} < #{Rails.root}/db/structure.sql"
system "mysql -u#{database_username} -p#{database_password} -P#{database_port} -h#{database_host} #{database} < #{Rails.root}/db/structure.sql"
puts "init success"
end