Cha*_*use 4 continuous-deployment meteor
我正在使用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 }"
Run Code Online (Sandbox Code Playgroud)
当该脚本在构建过程中运行时,我看到以下内容:
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:
Run Code Online (Sandbox Code Playgroud)
这ail:不是拼写错误......这就是Codeship所展示的.虽然没有显示任何错误,但它最终会超时并继续前进.
首次设置CI服务器(并使用Expect),所以提前感谢您的帮助!
想出来......有两个语法问题:
因此,对于任何寻找使用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 }"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
591 次 |
| 最近记录: |