2016-02-21 125 views
1

我試圖從Github部署Laravel 5.2到Azure。我不斷收到這個部署錯誤。我不知道如何添加令牌。我在我的github帳戶中創建了一個,並添加了:composer config github-oauth.github.com「。這添加了帶有令牌信息的auth.json,但在部署時仍然沒有運氣,我得到同樣的錯誤。是我做錯了嗎?從Github和令牌部署到Azure

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. 

回答

0

你在蔚藍的web應用程序控制臺手動輸入命令。 是你必須作曲家延長從蔚藍的擴展添加到您的應用程序執行命令之前,下面的命令

類型:composer config github-oauth.github.com

您可以從github seetings中生成個人令牌。

P.S讓我們知道您是否有任何簡單的方法來做到這一點