Skip to content

Commit

Permalink
chore: remove predis
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafikart committed Nov 1, 2024
1 parent 06246e3 commit 6ef39cf
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 71 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
REDIS_URL=redis://redis
REDIS_POOL=grafikart_cache

TYPESENSE_KEY=typesensekey
TYPESENSE_HOST=typesense:8108

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ help: ## Affiche cette aide
deploy: ## Déploie une nouvelle version du site
ssh -A $(server) 'cd $(domain) && git pull origin master && make install'

devdeploy: ## Déploie une nouvelle version du site
ssh -A $(server) 'cd dev.$(domain) && git pull origin develop && make install'

sync: ## Récupère les données depuis le serveur
rsync -avz --ignore-existing --progress --exclude=avatars grafikart:/home/grafikart/grafikart.fr/public/uploads/ ./public/uploads/

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"paypal/paypal-checkout-sdk": "^1.0",
"phpdocumentor/reflection-docblock": "^5.0",
"phpstan/phpdoc-parser": "^1.2",
"predis/predis": "^2.0",
"spatie/flysystem-dropbox": "^2.0",
"stripe/stripe-php": "^7.31",
"symfony/asset": "7.1.*",
Expand Down
63 changes: 1 addition & 62 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/packages/cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
$redis: '@Redis'
$defaultLifetime: 604800
tags:
- { name: 'cache.pool', namespace: 'grafikart_cache' }
- { name: 'cache.pool', namespace: '%env(resolve:REDIS_POOL)%' }

when@prod:
framework:
Expand Down
7 changes: 4 additions & 3 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ services:
tags: ['app.breadcrumb']

Redis:
class: \Predis\Client
arguments:
- '%env(REDIS_URL)%'
class: \Redis
calls:
- connect:
- '%env(REDIS_URL)%'

Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler:
arguments:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ services:
redis:
restart: unless-stopped
image: redis:7-alpine
ports:
- 6379:6379
meilisearch:
restart: unless-stopped
image: getmeili/meilisearch:v1.0
Expand Down
4 changes: 3 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';


return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
return new Kernel('prod', true);
// return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
3 changes: 0 additions & 3 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,6 @@
"tests/bootstrap.php"
]
},
"predis/predis": {
"version": "v1.1.1"
},
"psr/cache": {
"version": "1.0.1"
},
Expand Down

0 comments on commit 6ef39cf

Please sign in to comment.