From 2d01255147c178cfc17f1392bf8cc00140912556 Mon Sep 17 00:00:00 2001 From: AlexandreTedesco Date: Thu, 5 Jun 2025 16:34:34 +0200 Subject: [PATCH] Fix update user mothly_level --- config/database.yml | 4 +++- config/schedule.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/database.yml b/config/database.yml index df2e908..b01bd16 100644 --- a/config/database.yml +++ b/config/database.yml @@ -80,9 +80,11 @@ test: # production: <<: *default - database: agentv2_production + database: agentv2_development username: agentv2 password: <%= ENV["AGENTV2_DATABASE_PASSWORD"] %> + host: localhost + port: 5432 cache: database: agentv2_production_cache migrations_paths: db/cache_migrate diff --git a/config/schedule.rb b/config/schedule.rb index 99763ac..b735373 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -5,5 +5,5 @@ end every "0 0 1 * *" do - rake "users:reset_monthly_levels" + command "cd /root/Backend && RAILS_ENV=production bundle exec rake users:reset_monthly_levels --silent >> log/cron.log 2>&1" end