php - How to fix file not found on Heroku?
Get the solution ↓↓↓I have a laravel project deployed in Heroku, in my Laravel project i have a php script i made to receive json, myphp
script is in public folder, when i usephp artisan serve
to serve the project, the script is accessible with no problem through the followingurl
:
http://localhost:8000/receive-alert/api/historique/create.php
My problem is when i deploy my Laravel project theurl
isn't accessible anymore:
https://gestioncapteursincendie.herokuapp.com/receive-alert/api/historique/create.php
Answer
Solution:
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.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to undefined function illuminate\encryption\openssl_cipher_iv_length()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.