-
Notifications
You must be signed in to change notification settings - Fork 295
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
Example: laravel app #20
Comments
Hello, I am working on getting this up and running on laravel but when I run now dev I am stuck with this error PHP process errored Error: spawn php-cgi ENOENT |
If anyone has any advice that would be great. Thanks Logan |
You need to install php locally on your computer. Also |
Laravel default cache to '/storage' folder.This is different from the directory on the now.sh server. |
Hello @AGDholo. Only writable folder is /tmp, so you must rewrite all cache folders, session folder and other folders where laravel could write. |
I solved the problem with the /tmp folder, just add the following code in bootstrap/app.php to override StoragePath. # new storage path
# base_path() -> returns root path
$path_storage = "/tmp";
# override already $app->storagePath using the function
$app->useStoragePath($path_storage); And set path in config/{cache.php, session.php, view.php}: But when I deploy it on the server, it throws an error: The complete error is as follows:
Build warnning:
I tried to deploy Lumen(not Laravel) on now.sh and everything went well. If anyone knows the solution, please reply. |
@AGDholo could you post your now.json file. Thanks |
Laravel example is included in https://github.com/juicyfx/vercel-examples |
I got this error when i try to log into my vercel laravel project at https://ugeb.vercel.app/login : Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) 🐘STDERR: [Fri Mar 10 17:32:19 2023] 127.0.0.1:39112 Closing |
No description provided.
The text was updated successfully, but these errors were encountered: