简体   繁体   English

我需要在主机中上传哪些重要的laravel文件夹?

[英]What are the important laravel folders do I need to upload in my host?

I would like to ask an advice. 我想问个建议。 I'm trying to upload my laravel project in ftp using filezilla. 我正在尝试使用Filezilla在ftp中上传laravel项目。 I'm confuse. 我感到困惑。 what are the folders do I need to upload? 我需要上传什么文件夹? because if i upload all files there are 98,000 files to upload, including the vendors folder and more.Here the list of folders in laravel 因为如果我上载所有文件,则有98,000个文件要上载,包括vendors文件夹等等。这是laravel中的文件夹列表

-app
-bootstrap
-config
-database
-node_modules
-public
-resources
-storage
-tests
-vendors

I'm new in laravel. 我是Laravel新手。 That project is just a practice. 该项目只是一种实践。 Thanks in advance 提前致谢

i have few servers where i cannot do a easy ssh/composer etc like i do locally to have to upload manually :-(. 我有几个服务器无法像我在本地那样轻松地执行ssh / composer等,因此必须手动上载:-(。

But all i upload are the following folders/files. 但是我上传的都是以下文件夹/文件。

-app
-bootstrap
-config
-public
-resources
    - views
    - lang
-storage
-vendors
.env

You don;t need the node-modules unless your calling anything from with in as these can be huge and time consuming to upload if not required. 您不需要节点模块,除非您用in调用任何东西,因为如果不需要这些模块,它们可能会非常庞大​​且耗时。

hope this helps 希望这可以帮助

You should upload everything except vendor directory, .env file. 您应该上载除vendor目录, .env文件以外的所有内容。 Also usually you don't want to upload storage directory. 通常,您也不想上传storage目录。 Then you should run composer install command which will download all dependencies your project needs. 然后,您应该运行composer install命令,该命令将下载项目所需的所有依赖项。

Then create new .env file with correct settings, clear all cache and create or recreate autoload files: 然后使用正确的设置创建新的.env文件,清除所有缓存并创建或重新创建自动加载文件:

php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear

composer dumpauto

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM