I deploy laravel on heroku so I have this error:
403 Forbidden
You don't have permission to access this resource.
on the other hand I deploy laravel new project and it's work correctly
so what should i do to solve this problem .
thanks in advance
when I add Procfile on the project the deployment is comming correctly
Related
I'm trying to hosting a quasar project but i uploaded the files and it returns error 403:
I tried to follow the documentation but it didn't work
Do I need to create a configuration file in the project?
How can i do this .. when deploying my laravel to subdomain it shows a index of if anyone can help me ?
Point the domain to the public folder in laravel. This should solve your issue.
Hello guys I have been deploying Laravel applications on the server for a while, I have just created a SPA(Single Page App) Laravel + Vuejs how do I deploy it ? Just like normal laravel app or I need separate Frontend(Vuejs) and Backend (Laravel) instances ?
It is same as regular laravel app deployment.
run npm run production and after that make whole project as zip and put it on serve and just follow the steps as regular laravel project.
I have a Laravel project working fine in Localhost. After deploying it to a shared hosting server I am getting "prettyPrint is not defined" error. Can someone help me identify the problem. PHP version on server is 7.1. Laravel 5.8 and using jeroennoten/Laravel-AdminLTE
Problem was .htaccess file. Replacing file solved the problem.
I am trying to deploy laravel application on heroku. I followed the videos on heroku homepage for deploying a php application. I currently get a 403 error, You don't have permission to access / on this server. How can I change the app permissions in order to run it correctly?
Also how can I access the app from the terminal to apply any changes if possible?
Long time since I use Heroku, but the documentation has what you need. You are getting a 403 because it is likely you are not setting the web root. By default the web root is / which is restricted. In Laravel you need it to be /public
Add a Procfile to the root of your Laravel project and add the following line to it:
web: vendor/bin/heroku-php-apache2 public/
The second part of your question can be achieved by running heroku run bash from the terminal. You may need to specify your app name. However it should be mentioned that its likely your changes would be over written next time you deploy your app.