Skip to content

Commit

Permalink
Fix entrypoint for sidekiq
Browse files Browse the repository at this point in the history
  • Loading branch information
aldwin7894 committed Mar 23, 2024
1 parent 714638c commit a68e8c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/initializers/cf_access_authenticatable.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# typed: true

## This class extends devise to validate the JWT provided by cloudflare and ensure the email addresses match

Expand Down Expand Up @@ -37,6 +38,7 @@ def authenticate!
unless resource
Rails.logger.info("User #{email} not found")
redirect!(cf_teams_url)
return
end

remember_me(resource)
Expand Down
2 changes: 1 addition & 1 deletion config/redis/redis.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
maxmemory 1gb
maxmemory-policy allkeys-lfu
maxmemory-policy noeviction
maxmemory-samples 5
lfu-log-factor 10
lfu-decay-time 1
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ services:
image: aldwin7894/project-cyan:prod
entrypoint: /usr/src/app/entrypoint-sidekiq.sh
command: "bin/sidekiq"
healthcheck:
test: ["NONE"]
restart: always
depends_on:
- db
Expand Down

0 comments on commit a68e8c8

Please sign in to comment.