我正在使用TeamCity作为我的CI服务器(mac)。我正在尝试构建Web项目。当我将grunt serve
或grunt buildproduction
更改为克隆文件夹后,它工作得很好。但是当我通过TeamCity服务器执行此操作时,它提供了一个错误You need to have Ruby and Compass installed and in your system PATH for this task to work
并因警告而中止。 Ruby和Compass已经安装在server.Please帮助我这一点。无法在TeamCity中构建Web项目
rm -rf $(pwd)/node_modules/*
rm -rf $(pwd)/bower_components/*
npm cache clear
npm install
npm install bower
npm install grunt-ftp-push --save-dev
bower install
grunt buildproduction
这是命令行buildstep我在TeamCity的使用..
您的代理程序是否与服务器安装在同一台计算机上? – 2015-02-10 17:25:33
是的......当我重新启动我的服务器时,问题得到解决..感谢您花费宝贵的时间。 – 2015-02-11 06:37:14