(How) Laravel Deploy with FTP

前端 未结 3 1190
半阙折子戏
半阙折子戏 2021-01-23 01:26

I built a laravel project and I normally use localhost with the command \"php artisan serve\" to test my project

But now, I want to host on server. I successfully connec

3条回答
  •  执笔经年
    2021-01-23 02:23

    Simply drag and drop the root folder to your server's root. Not to the public_html directory. The only thing that should be in the public_html directory is Laravel's "public" directory (thus you have to rename it, depending on your server's settings).

    Do not put your configuration files inside the public_html folder or anyone will be able to access them and steal your data.

提交回复
热议问题