Laravel Forge快速部署抛出500错误 [英] Laravel Forge Quick Deploy throwing 500 error

查看:99
本文介绍了Laravel Forge快速部署抛出500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Laravel Forge上设置了所有配置,并创建了连接到Bitbucket Git存储库的新站点.

I've set up all configurations at Laravel Forge, and created new site connected to Bitbucket Git repository.

当我单击启用快速部署"时,该按钮将引发错误,而立即部署"效果很好.

When I click "Enable Quick Deploy" the button an error is thrown, whereas "Deploy Now" works well.

https://forge.laravel.com/servers/{myserver}/sites/{mysite}/deploy 500 (Internal Server Error)

我发现此链接与我有类似的问题:

I found out this link which has similar issue to me : https://laracasts.com/forum/?p=1676-laravel-forge-deploy-and-quick-deploy-not-working/0

唯一的不同是快速部署"发生了我的事情.

Only one different thing is that mine happens to the 'Quick Deploy'.

您知道发生这种情况的任何原因吗?

Do you know any reason why it happens?

推荐答案

我从泰勒(Laravel Forge)直接得到了有关此问题的回复.

I've got this response about it from Taylor(Laravel Forge) directly.

泰勒说:

这意味着您的源代码控制提供程序(例如GitHub)上存在权限错误,我们无法添加服务挂钩.

Taylor said:

This means there is a permission error on your source control provider such as GitHub and we are unable to add a service hook.

您可以尝试在身份验证"标签上的Forge帐户面板中刷新访问令牌.然后,我将在GitHub/Bitbucket上验证未禁用第三方集成-这是GitHub上的不幸默认值

You can try refreshing your access token in your Forge account panel on that "Authentication" tab. Then I would verify on GitHub / Bitbucket that 3rd party integrations are not disabled - this is an unfortunate default on GitHub

我按照他的指示,刷新了Forge帐户面板中的访问令牌,并允许Bitbucket Integrations上的Forge访问,然后它可以工作了! (我正在使用Bitbucket.)

I followed his instruction, refreshed the access token in the Forge account panel, and allowed the Forge access on Bitbucket Integrations, then it works! (I'm using Bitbucket.)

这意味着伪造没有权限,这使我可以扩展存储库更改时Bitbucket的工作.

It means that the forge didn't have a permission which allows me to extend what Bitbucket does when the repository changes.

这篇关于Laravel Forge快速部署抛出500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆