Capistrano sync banco de dados postgresql

config / deploy / database.rb: database_yml_path = “config/database.yml”config = YAML::load(capture(“cat #{deploy_to}/shared/#{database_yml_path}”))adapter = config[rails_env][“adapter”]database = config[rails_env][“database”]db_username = config[rails_env][“username”]host = config[rails_env][“host”]config = YAML::load(File.open(database_yml_path))local_rails_env = ‘development’local_adapter = config[local_rails_env][“adapter”]local_database = config[local_rails_env][“database”]local_db_username = config[local_rails_env][“username”]set :timestamp, …

Continuar lendo