2016-10-03 60 views
0

我想在git hub中部署我的angular2應用程序。 這裏是我做的一步一步:使用ember-cli部署Angular2

1-創建使用ng new deploy

2創建新的倉庫一個新angular2應用 git initgit remote add origin repo-uri

3- git add .git commit -m "prepare for deploy"

4 - ng github-pages:deploy 不幸的是,在這一步我面對以下消息:

Running without elevated rights. Running Ember CLI "as Administrator" increases performance significantly. 
See ember-cli.com/user-guide/#windows for details. 

Built project successfully. Stored in "dist/". 
Deployed! Visit [https://salman-.github.io/dep1/][1] 
Github pages might take a few minutes to show the deployed site. 

當我導航到uri時,那裏什麼也沒有。

我的部署出了什麼問題?

更新: 我第一次試圖把我面臨着以下錯誤:

fs.js:60 
     throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs 
    ^

Error: ENOTEMPTY: directory not empty, rmdir 'C:\Users\Salman\Desktop\Nuroscience\dep1\dist\vendor\reflect-metadata\temp' 
    at Error (native) 

所以,我手動刪除dist文件夾,我再次把我的代碼,而這一次正確推送。

Here是github代碼uri。

+1

什麼是你的GitHub的個人資料網址是什麼? – Vamsi

回答

1

您已更改項目名稱deploy1

所以,現在你的網站指向https://salman-.github.io/deploy1/

+0

是的,你是對的。但它仍然無法加載,因爲有一些404錯誤。你怎麼看? – Salman

+0

你在代碼中犯了一些錯誤。 你沒有給github個人資料網址,我必須找到它。 您沒有向github提交任何代碼,您如何期待我提供解決方案? – Vamsi

+0

我更新了我的問題,並添加了回購網址。 – Salman