How to fix file not found on Heroku?

39
March 16, 2019, at 03:40 AM

I have a laravel project deployed in Heroku, in my Laravel project i have a php script i made to receive json, my php script is in public folder, when i use php artisan serve to serve the project, the script is accessible with no problem through the following url:

http://localhost:8000/receive-alert/api/historique/create.php

My problem is when i deploy my Laravel project the url isn't accessible anymore:

https://gestioncapteursincendie.herokuapp.com/receive-alert/api/historique/create.php
Answer 1

I found the solution, the folder in which my php script (receive-alert) was a repository of its own which is why heroku for some reason didn't recognize it, it works fine now.

READ ALSO
How to set a shipping cost by item in Woocommerce

How to set a shipping cost by item in Woocommerce

In Woocommerce, when I add multiple products in cart, the shipping only applies to to 1 productHow should I change that to apply the cost to each item?

20
Show table with conditions from 2 input fields

Show table with conditions from 2 input fields

I'm having problems showing filtered table under 2 conditions from my database table

23
Why I can't change html format to php format

Why I can't change html format to php format

I got admin panel template from Creative TIM and I want to programing it from scratch but I can't write PHP commands inside HTML so I tried change it from dashboardcomponent

30
Find all audio files recursively and play them at random

Find all audio files recursively and play them at random

What would be a method that can find all audio files and play them at random

51