Vendor:Publish - Nothing to publish for tag [] - Only on production server(供应商:发布 - 标签 [] 没有要发布的内容 - 仅在生产服务器上)
问题描述
我正在使用第三方库,在本地,我使用他们提供的步骤安装了所有内容.
I am using a third party library and locally, I installed everything using the steps that they provided.
- 我在包上运行了
composer require
并运行了更新.这安装到vendor
文件夹中. - 然后我将路径添加到
config/app
中的provider
中,并且还作为别名.. - 我运行
php artisan vendor:publish --provider="SpatieLaravelAnalyticsLaravelAnalyticsServiceProvider"
配置文件创建成功,没有任何问题. 然后我上传到生产环境并继续得到
Class 'LaravelAnalytics' not found
,我似乎无法找出问题所在..
- I ran
composer require
on the package and ran an update. This installed into thevendor
folder. - I then added the path into the
provider
inconfig/app
and also as an aliases.. - I ran
php artisan vendor:publish --provider="SpatieLaravelAnalyticsLaravelAnalyticsServiceProvider"
the config file created successfully and I had no problems. I then uploaded to the production environment and kept on getting
Class 'LaravelAnalytics' not found
and I can't seem to figure out the problem..
我运行 php artisan vendor:publish --provider="SpatieLaravelAnalyticsLaravelAnalyticsServiceProvider"
但我不断收到:Nothing to publish for tag [].
这让我认为这可能是问题所在,因为包没有发布.
But I kept on getting: Nothing to publish for tag [].
which has lead me to thinking that this could be the problem since the package is not published.
我的本地环境是 Ubuntu,我的生产环境是 CentOS.如果我尝试 CD 到我的生产环境中的那个目录,它说找不到.
My local environment is Ubuntu and my production Environment is CentOS.. If I try to CD into that directory on my production environment it says cannot find.
因此,这可能是一个区分大小写的问题吗?我如何添加未获取此包的提供商?
Could this therefore be a problem with the case sensitive on how I am adding my providers that is not picking up this package?
推荐答案
你在使用缓存的配置文件吗?尝试使用
are you using cached config files ? try using
php artisan config:clear
然后重试
php artisan vendor:publish
这篇关于供应商:发布 - 标签 [] 没有要发布的内容 - 仅在生产服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:供应商:发布 - 标签 [] 没有要发布的内容 - 仅在生产服务器上
基础教程推荐
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01