我正在尝试在git hub中部署我的angular2应用。 以下是我一步一步做的事情:
1-使用ng new deploy
2 - 创建新的存储库
git init
和git 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。