Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: DEPLOY TO LARAVEL #150

Open
diepdo1810 opened this issue May 3, 2024 · 2 comments
Open

ERROR: DEPLOY TO LARAVEL #150

diepdo1810 opened this issue May 3, 2024 · 2 comments

Comments

@diepdo1810
Copy link

Bug report

ERR

Screenshot from 2024-05-03 17-46-14

File vercel.json

Screenshot from 2024-05-03 17-44-56

Description

  • Where is the "/var/task/user/storage/logs/laravel.log" folder and is it not in my project folder?

PROJECT:

  • laravel 10
  • vue 3
  • php 8.1

Please help me. Thanks everyone

@janglapuk
Copy link

Bump.

Have you set APP_DEBUG=false in vercel.json environment? Take a look php-laravel in this repo.

If you want to keep debugging enabled, make a custom env entry APP_LOG_FILE=/tmp/laravel.log in vercel.json and modify config/logging.php:

// ...
'single' => [
    'driver' => 'single',
    'path' => env('APP_LOG_FILE', '/tmp/laravel.log'),
    'level' => 'debug',
],
// ...

Haven't tried this before. Just posted on mobile.

@janglapuk
Copy link

janglapuk commented Jul 5, 2024

Another problem is: remapping original bootstrap/cache directory into writable /tmp/bootstrap/cache.

Make sure that /tmp/bootstrap/cache exists before everything is run. It could be done in the entry point index.php to check and create the directories with mkdir() recursively if it does not exist.

Update: it could be done with Redis or Memcached to handle the caches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants