我正在使用Meteor的内置主机进行暂存,Codeship处理持续部署。所有测试和通知都在Codeship中按预期成功,但没有任何部署。
我的剧本:
expect -c "set timeout 60; spawn meteor deploy staging.myapp.com; expect “Email:” { send $METEOR_DEPLOY_EMAIL\r; expect eof } expect "Password:" { send $METEOR_DEPLOY_PASSWORD\r; expect eof }"
在构建过程中运行该脚本时,我看到以下内容:
spawn meteor deploy staging.myapp.com
=> Running Meteor from a checkout -- overrides project version (0.8.1)
To instantly deploy your app on a free testing server, just enter your
email address!
ail:
ail:
不是拼写错误......这就是Codeship所展示的内容。虽然没有显示任何错误,但它似乎最终会超时并继续前进。
首次设置CI服务器(并使用Expect),所以提前感谢您的帮助!
答案 0 :(得分:5)
想出来......有两个语法问题:
因此,对于任何希望使用Codeship部署到* .meteor.com的脚本的人来说,这是工作脚本:
expect -c "set timeout 60; spawn meteor deploy example.com; expect "Email:" { send $METEOR_DEPLOY_EMAIL\r; expect eof }; expect "Password:" { send $METEOR_DEPLOY_PASSWORD\r; expect eof }"