从Github和Token部署到Azure

时间:2016-02-21 20:43:49

标签: laravel azure

我正在尝试从Github将Laravel 5.2部署到Azure。我不断收到此部署错误。我不确定如何添加令牌。我在我的github帐户创建了一个并添加了:composer config github-oauth.github.com“。这为auth.json添加了令牌信息,但在尝试部署时仍然没有运气。我得到了同样的错误。我做错了吗?

Command: D:\home\SiteExtensions\ComposerExtension\Hooks\deploy.cmd
Install Dependencies with Composer
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing nesbot/carbon (1.21.0)
    Downloading

Could not fetch https://api.github.com/repos/briannesbitt/Carbon/zipball/7b08ec6f75791e130012f206e3f7b0e76e18e3d7, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+RD00155DB2046E+2016-02-21+1233
to retrieve a token. It will be stored in "D:\home\site\repository/auth.json" for future use by Composer.

Token (hidden): No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com <token>"
Command 'starter.cmd D:\home\SiteExt ...' was aborted due to no output nor CPU activity for 60 seconds.

1 个答案:

答案 0 :(得分:0)

您必须在azure web app控制台中手动输入命令。 在执行命令之前,您必须从azure扩展名为您的应用添加作曲家扩展。

键入以下命令:composer config github-oauth.github.com

您可以从github seetings生成个人令牌。

如果你有任何简单的方法,请告诉我们