对于我的角度CLI /到位桶项目我正在按照Codeship脚本,但它给错误You have to be inside an angular-cli project in order to use the serve command.
代码船失败,错误 - 你必须是一个角CLI项目中才能使用的服务命令
#install node version, 4.x is required for the angular-cli
nvm install 4.1
#install angular-cli
npm install angular-cli
#run npm install for your project dependencies
npm install
在该脚本下是“Test Pipelines”,其中脚本设置为运行测试。
#serve the application adding '&' to run command in background
ng serve &
#start end to end tests using protractor
ng test
#if all of the tests pass, then build the production assets
ng build -prod
Ahoy :)从错误消息来看,它似乎是'ng' CLI不能将项目识别为Angular项目。出于好奇,你是否已经在https://helpdesk.codeship.com上创建了一张票,如果没有,你可以创建一个并包含链接到失败的构建?我们很高兴看一看,并帮助你解决这个问题。 – mlocher
我已经提出这张票。我被告知运行SSH调试,但我发现很难遵循这些步骤。即使在我添加了ssh密钥后,控制台要求输入'password',我认为它不应该 - Ticket是https://helpdesk.codeship.com/hc/en-us/requests/15489 –
好吧,让我看看那张票,然后回到那里。 – mlocher