Need help for Laravel success deployment
Comments
-
It is easy to deploy Laravel. You just need to upload the content of Public Folder to htdocs and use Laravel from there.
Or, you can upload Laravel as it is to htdocs and move index.php of Public folder to main htdocs. If you do this, you will need to change include paths inside index.php file. -
Thank you, Admin. I think I did the way you said , but I am not sure . I will try it until I get it, because you said it works, therefore, I may do a wrong way . Should I delete everything and start upload fresh, because when I use FPT to upload files, sometimes I see it fails . could it be missing some files ? . Thanks Admin again
-
Hi Admin, Sorry I need your help again . I pick second choice . Upload Laravel to htdocs folder, and move index.php of Public folder to main htdocs . I edit index.php as:
require DIR.'/../bootstrap/autoload.php';
To this
require DIR.'/blog/bootstrap/autoload.php';
$app = require_once DIR.'/../bootstrap/app.php';
To this
$app = require_once DIR.'/blog/bootstrap/app.php';
I got an error :"Whoops, looks like something went wrong."
What else you I look into ? . Thank you!
-
You can use this link as reference: https://laracasts.com/discuss/channels/laravel/installing-laravel-on-server-without-ssh?page=1
If you are still having an issue, don't hesitate to ask again.
I'll try to write a support article on setting up Laravel as soon as possible.