mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-28 17:52:39 +00:00
feat: Add support for Clever cloud deployments (#1703)
This commit is contained in:
5
clevercloud/ruby.json
Normal file
5
clevercloud/ruby.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"deploy": {
|
||||
"sidekiq": true
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ db_namespace = namespace :db do
|
||||
ActiveRecord::Base.configurations.configs_for(env_name: Rails.env).each do |db_config|
|
||||
ActiveRecord::Base.establish_connection(db_config.config)
|
||||
# handling case where database was created by the provider, with out running db:setup
|
||||
if ActiveRecord::Base.connection.tables.count.zero?
|
||||
unless ActiveRecord::Base.connection.table_exists? 'ar_internal_metadata'
|
||||
db_namespace['load_config'].invoke if ActiveRecord::Base.schema_format == :ruby
|
||||
ActiveRecord::Tasks::DatabaseTasks.load_schema_current(:ruby, ENV['SCHEMA'])
|
||||
db_namespace['seed'].invoke
|
||||
|
||||
Reference in New Issue
Block a user