所以,Laravel spark 不再让我连接到 github,它导致我无法推送到 heroku 并完全停止我的工作。我尝试将 Spark 代码放在一个文件夹中,然后创建代码路径存储库。但是,当我运行作曲家更新时,它仍然尝试从相同的 github 位置获取代码。似乎找不到存储库。
我已经尝试了大量的路径变化并将代码放置在不同的位置。这是作曲家的部分:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"laravel/spark":"*",
....
"repositories": [
{
"type": "path",
"url": "vendor/laravel/spark"
},
{
"type": "composer",
"url": "https://spark-satis.laravel.com"
}
],
而且,在包装作曲家中...
"name": "laravel/spark",
"description": "Laravel Spark provides scaffolding for Laravel SaaS applications.",
"keywords": ["laravel", "stripe", "billing", "scaffolding", "saas"],
"license": "MIT",
"authors": [
{
"name": "Taylor Otwell",
"email": "taylorotwell@gmail.com"
}
],
"require": {
"php": ">=5.5.9",
"erusev/parsedown": "~1.0",
"firebase/php-jwt": "~3.0",
"guzzlehttp/guzzle": "~6.0",
"ramsey/uuid": "^3.1",
"intervention/image": "^2.3"
},
"require-dev": {
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"mpociot/vat-calculator": "^1.6"
},
"autoload": {
"psr-4": {
"Laravel\Spark\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"minimum-stability": "dev"
我是否缺少一些东西来确保作曲家使用路径存储库而不是查看 github?
将 laravel/spark 代码推送到你自己的 git 存储库,而不是在 composer.json 中使用
"repositories": [
{
"type": "vcs",
"url": "https://path to your repo"
}
],
并运行composer require laravel/spark
,它应该从你的仓库中获取代码
由于 laravel/spark 不再是免费的,并且无法与作曲家一起安装或更新
您必须购买许可证版本才能使用它。
https://spark.laravel.com/licenses