I just build an app which has Laravel 5.5 on the backend and VueJS on an html template on the frontend. I tested it locally and its working perfectly but when I deploy via cpanel, the Laravel API returns a 500 internal service error whenever I call it. Below is the API which is working locally:
axios.post('http://localhost:9000/api/user/login?api_token=myapitoken', obj)
After deployment, I tried accessing this API but it returns a 500 internal server error
axios.post('http://mywebsite.com/backend/public/api/user/login?api_token=myapitoken', obj)
Deployment:
The laravel app sits in a folder called backend. I copied the files in the laravel public folder into the public html folder of the domain and edited its contents as described here: https://medium.com/laravel-power-devs/deploy-laravel-projects-on-shared-hosting-2008be6f6f03
I feel its a routing issue but I don't know how to go about solving it. Any help would be appreciated!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire