我使用 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),所以在此先感谢您的帮助!
最佳答案
想通了……有两个语法问题:
标准引号)
因此,对于正在寻找使用 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 }"
关于meteor - 通过 Codeship 为 Meteor.com 托管部署脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23848246/