Laravel (ReflectionException(code: -1): Class session does not exist #2738
Answered
by
jasperf
jasperf
asked this question in
Help needed
-
Using Deployer 7
So I am thinking there may be an issue with caching settings.. Using this now import:
- recipe/laravel.php
- contrib/php-fpm.php
- contrib/npm.php
config:
application: 'site-app'
remote_user: forge
deploy_path: '~/{{hostname}}'
repository: '[email protected]:site/site-app.git'
php_fpm_version: '8.0'
keep_releases: '10'
shared_files:
- '.env'
- '.transip_private_key'
- 'storage/app/exact.api.json'
shared_dirs:
- 'public/uploads'
- 'public/published'
- 'storage/framework/cache'
- 'storage/framework/sessions'
- 'storage/framework/views'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
writable_dirs:
- 'public/uploads'
- 'public/published'
- 'storage/framework/cache/data'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
hosts:
prod:
hostname: 'site.com'
staging:
hostname: 'staging.site.com'
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:optimize
- artisan:migrate
- artisan:queue:restart
- artisan:horizon:terminate
- deploy:publish
after:
deploy:failed: deploy:unlock
Any idea where I may have done something off in the deployment? |
Beta Was this translation helpful? Give feedback.
Answered by
jasperf
Nov 15, 2021
Replies: 1 comment
-
Using ...
shared_dirs:
- 'bootstrap/cache'
... now to avoid the issue and keep cache in shared directory. Should solve the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jasperf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
now to avoid the issue and keep cache in shared directory. Should solve the issue.