Private pub gem需要额外的 Faye 服务器来服务消息队列。它通过以下命令与 rails 服务器并行启动:rackup private_pub.ru -s thin -E production
为了通过某些规范,还需要此服务器。所以我在 .travis.yml 中包含了它的启动命令:
language: ruby
services:
- postgresql
- rack
before_script:
- rackup private_pub.ru -s thin -E production
- cp config/database.yml.travis config/database.yml
- psql -c 'create database travis_ci_test;' -U postgres
但是在构建过程中,这个命令会引发错误:
0.00s$ rackup private_pub.ru -s thin -E production
/home/travis/build.sh: line 45: rackup: command not found
The command "rackup private_pub.ru -s thin -E production" failed and exited with 127 during .
我究竟做错了什么?