forked from Gitlink/forgeplus
部署调整去掉ssl_mode
This commit is contained in:
parent
253196e000
commit
d13ac9e9fe
|
@ -7,7 +7,6 @@ default: &default
|
||||||
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
|
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
|
||||||
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
|
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
|
||||||
wait_timeout: 10
|
wait_timeout: 10
|
||||||
ssl_mode: disabled
|
|
||||||
gitea_server:
|
gitea_server:
|
||||||
adapter: mysql2
|
adapter: mysql2
|
||||||
database: <%= ENV.fetch("MYSQL_DB_GITEA") { 'gitea' } %>
|
database: <%= ENV.fetch("MYSQL_DB_GITEA") { 'gitea' } %>
|
||||||
|
|
|
@ -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}"
|
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"
|
puts "init success"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue