2016-10-03 62 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