deploy laravel project on heroku - laravel

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

How Hosting a Quasar project?

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 to Deploy my laravel project on a subdomain hostgator

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.

How do I deploy Vuejs App backed by Laravel, In similar fashion we usually deploy laravel app or I need seperate frontend and backend instances?

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.

Deployed Laravel project not running

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.

Laravel - Deploy app on Heroku

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.

Resources