Joh*_*ood 5 ruby-on-rails guard spork ruby-on-rails-3.1
根据Ryan Bates的RailsCast(在Linux Mint 12下),我已经安装了防护和spork,并且防护过程在启动后立即显示"已杀死".运行"bundle exec guard --verbose"给出:
bundle exec guard --verbose DEBUG(12:17:27):命令执行:which notify-send
Guard使用NotifySend发送通知.
警卫正在观看'path_to_project'
DEBUG(12:17:27):Hook:为Guard :: Spork执行了start_begin
DEBUG(12:17:27):命令执行:ps aux | awk'/ spork/&&!/ awk/{print $ 2;}'
DEBUG(12:17:27):使用PID:8884杀死Spork服务器
杀害
我已经尝试调整guard gem文档的"高级Linux系统配置"(max_queued_events和max_user_instances,max_users_watches)中的值.没有比所有人的默认值高得多的快乐.
有任何想法吗?如果是这样,请提前感谢.到目前为止,Google-fu对此特定问题没有任何帮助.
我时不时地看到这种情况发生。您需要做的是找到正在运行的 spork 进程并将其杀死。例如:
ps aux | grep spork
Run Code Online (Sandbox Code Playgroud)
记下任何活动 spork 进程的 pid(第一列)。如果碰巧是 123,则输入:
kill 123
Run Code Online (Sandbox Code Playgroud)
然后又开始守卫。