Category : heroku

—–> Building on the Heroku-20 stack —–> Using buildpack: heroku/php —–> PHP app detected —–> Bootstrapping… —–> Installing platform packages… – php (8.1.1) – ext-mbstring (bundled with php) – composer (2.2.3) – apache (2.4.51) – nginx (1.20.2) —–> Installing dependencies… Composer version 2.2.3 2021-12-31 12:18:53 Installing dependencies from lock file Verifying lock file contents can ..

Read more

I Uploaded my project to heroku but when I am trying to reach my register route a get this error : Unable to read key from file file:///app/storage/oauth-private.key my register api : Route::post(‘/users/register’ , ‘[email protected]’) ; my register controller : public function register(Request $request) { $rules = [ ’email’=>’email|required|unique:users’, ‘password’=>[‘required’ , ‘confirmed’ , Password::min(8)->letters()->mixedCase()- >numbers()->symbols()] ..

Read more

I have a laravel app I am externally adding css files to my project <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4//owl.carousel.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4//owl.theme.default.min.css"> I deployed the laravel app to heroku I get the following error Refused to apply style from ‘https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4//owl.carousel.min.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is ..

Read more

When I uploaded my laravel project to Heroku host and go to the home page I found the laravel homepage (welcome.blade.php) that is fine but when a try one of my routes I get a page that says NOT FOUND my api file : Route::post(‘/users/register’ , ‘[email protected]’) ; my .env file APP_NAME=Laravel APP_ENV=local APP_KEY=base64:PecXeFHeAtspGD2s79k4F5HNh2mwgJEC7B1j7/a5cPU= APP_DEBUG=true ..

Read more

After the deploy of my laravel project I got some errors and after fixing some of them I’m now stuck at a error 405 related to a POST method. Here is the code: @section(‘content’) <div class="flex justify-center"> <div class="w-4/12 bg-white p-6 rounded-lg"> <form action="{{ route(‘register’) }}" method="post"> @csrf <div class="mb-4"> <label for="">Name</label> <input type="text" class="bg-gray-100 ..

Read more

below is my helper.php code sometimes the app works with the same set of code but sometimes it show this error. //get json setting as array if (!function_exists(‘setting’)) { function setting($key) { $setting=Setting::where(‘key’,$key)->first(); **$setting=json_decode($setting[‘value’],true);** //<- error in this line return $setting; } } it only shows when I migrate my database by PHP artisan migrate. ..

Read more

remote: ! ERROR: Application not supported by this buildpack! remote: ! remote: ! The ‘heroku/php’ buildpack is set on this application, but was remote: ! unable to detect a PHP codebase. remote: ! remote: ! A PHP app on Heroku requires a ‘composer.json’ at the root of remote: ! the directory structure, or an ‘index.php’ ..

Read more

I’m trying to deploy on heroku my laravel app using PHP 8. In local, it is working, and I’m not seeing any problematic dependency. wikison git:(master) git push heroku master Enumerating objects: 482, done. Counting objects: 100% (482/482), done. Delta compression using up to 8 threads Compressing objects: 100% (238/238), done. Writing objects: 100% (482/482), ..

Read more

I wanted to write an endpoint in my code for running the below command. How can i do that? worker: php artisan queue:work –queue=high,default. Am using this command because as php artisan queue:work –queue=high,default will not work on herokku server. i know artisan::call(‘queue:work –queue=high,default’); is the way to call the php artisan queue:work –queue=high,default.But how ..

Read more

i want to resize and crop the images when they are uploaded. My script works in local but recently i deployed it in heroku and doesn’t work this is my full script public function store(Request $request) { $data = $request->validate([ ‘title’ => ‘required|min:5’, ‘category’ => ‘required’, ‘preparation’ => ‘required’, ‘ingredients’ => ‘required’, ‘img’ => ‘required|image’ ..

Read more

I tried displaying uploaded images from cloudinary but it wasn’t showing using the below <img style="width:auto" src="https://res.cloudinary.com/hrwev09ub/image/upload/v1637132013/dnpic_1637127942.png"> before now i tried the img tag above actually worked locally but not through heroku, because on heroku what i could see on checking the code source is the below <img style="width:auto" src="dnpic_1637127942.png"> i am using Laravel 8 ..

Read more

I am working on a Laravel project which is hosted on Heroko. A few days ago it stop building and produced the following error message ℹ Compiling Mix [webpack-cli] [Error: ENOENT: no such file or directory, open ‘/tmp/src/js/vendors/plugins/datatables.init.js’] { errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘/tmp/src/js/vendors/plugins/datatables.init.js’ } npm ERR! code ELIFECYCLE npm ERR! errno ..

Read more

I have a laravel 8 project hosted in heroku. I am trying to do logs like my dev environment. In my dev environment, I have this .env file (extract) : LOG_CHANNEL=daily LOG_LEVEL=debug And this configuration in my logging.php file (extract) : ‘channels’ => [ ….. ‘daily’ => [ ‘driver’ => ‘daily’, ‘path’ => storage_path(‘logs/laravel.log’), ‘level’ ..

Read more