How to deploy Laravel 5.5 app to Godaddy cPanel shared hosting

前端 未结 3 621
别那么骄傲
别那么骄傲 2021-02-06 17:30

I\'m relatively new to Laravel. I\'m confused on what is the proper way to deploy a Laravel 5.5 app to a Godaddy cPanel shared hosting. I\'ve read multiple posts on the subject

3条回答
  •  情歌与酒
    2021-02-06 18:28

    I do the followings steps in a shared hosting:

    1. compress the laravel proyect
    2. upload the new file .zip
    3. uncompress the project
    4. move all the project to the home directory, normally to public_html
    5. go to public folder and move index.php to public_html
    6. edit index.php in line 24 and 38 for laravel 5.8

    line 24

    require __DIR__.'/vendor/autoload.php';
    

    line 38

    require_once __DIR__.'/bootstrap/app.php';
    

    this work for me in godaddy and inmotion

提交回复
热议问题