【问题标题】:Ruby Rails 1.9.4-perf Zeus server not working, diesRuby Rails 1.9.4-perf Zeus 服务器不工作,死机
【发布时间】:2012-09-18 17:01:01
【问题描述】:

终端输出:

joe@peteimac:~
> zeus start
Starting Zeus server
ready   : boot
died    : boot

:在这之后它并没有退出,它似乎只是挂起......

Zeus 更像是 Spork。它可以让你在后台加载你的应用程序,这样测试之类的东西就可以运行得非常快。 https://github.com/burke/zeus

我和我的同事都在努力让它发挥作用。以下是您在全新 Mac 上键入的命令列表,以到达我现在的位置,但也许我错过了什么?

强大的列表

#The github links below contain guides, this assumes they are followed, with the exception that variables go in .zshrc rather than .zshenv
#Install ZSH | https://github.com/robbyrussell/oh-my-zsh | This means I ditch paths into .zshrc rather than .bash_profile etc
#Install RBENV | https://github.com/sstephenson/rbenv | Colleague using RVM is also having problemos
#Install ruby-build | https://github.com/sstephenson/ruby-build | handy for installing ruby versions
#Continue setting up RBENV and install Bundler | https://gist.github.com/1384279 | Bundler manages the gems, no need for rbenv bundler
# Install patched ruby version using Rbenv and ruby-build | https://gist.github.com/1688857 | "rbenv versions" should show something like:
> rbenv versions
  1.9.3-p194
* 1.9.3-p194-perf (set by /Users/joe/.rbenv/version)
# Rehash
rbenv rehash
# Reload .zshrc, as have added parameters to it following the gist guide for installing 194-perf
exec $SHELL
# Zeus expects a few things, rails should install to ~/.rbenv/versions/1.9.3-p194-perf/bin i think
gem install rails
# The init file Zeus.json mentions cucmber and rspec, so they need to be install globally in rbenv rather than just locally bundled in your projects
gem install cucumber
gem install rspec
rbenv rehash
zeus init
zeus start
# Later, when I get zeus to work globally, I will:
##git pull project_stuff to ~/my_project
cd my_project
rbenv local 1.9.3-p194-perf
bundle install
rbenv rehash
zeus init
zeus start

也试过重启

解决方案摘要

这个问题是因为我试图在主文件夹而不是 my_project 文件夹中启动 zeus。但是,在那里执行它会产生不同的错误,它会挂起。已移至https://stackoverflow.com/questions/12473539/ruby-rails-1-9-4-zeus-server-hangs-after-zeus-start

【问题讨论】:

  • 左击强大列表并向右拖动以阅读隐藏的文字

标签: ruby rbenv zeus


【解决方案1】:

rails server 首先工作吗?

【讨论】:

  • 啊!使用全局安装的 gem 运行它的主目录它会死掉,但是在项目目录中它会挂起,所以我将开始一个关于修复它的新问题,因为我猜这个特定错误已解决 =) stackoverflow.com/questions/12473539/…
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-07-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-27
  • 2015-03-09
相关资源
最近更新 更多