2017-04-07 94 views
0

我試着上傳從GitHub天青我Angular2項目,但我得到以下錯誤,當我打開網頁天青:GitHub的部署天青

You do not have permission to view this directory or page.

GitHub的部署到Azure中運行良好,沒問題。有人知道爲什麼我仍然得到這個錯誤信息的原因嗎?

這裏的my GitHub project

這裏是my Azure website

+0

嘗試 - http://assignment2angular.azurewebsites.net/src/ –

+0

@拉杜 - 新馬泰它會持續永遠 只顯示「正在加載...」在瀏覽器中 –

回答

0

您正在使用Azure的Web App和Azure的使用IIS託管應用程序。所以,基本上,你不再需要用Node.js腳本處理你的Angular2項目。

請嘗試從/wwwroot文件夾中刪除server.js文件,並刪除web.config文件中的以下內容。

<handlers> 
    <!-- indicates that the app.js file is a node.js application to be handled by the iisnode module --> 
    <add name="iisnode" path="server.js" verb="*" modules="iisnode" /> 
</handlers>