" Bundle exec napa server"抛出"无法获得主/从设备(RuntimeError)"在生产中

时间:2016-10-13 21:59:28

标签: ruby grape pty napa

我使用Napa开发了我的第一个应用程序,现在我尝试将其部署在我的生产服务器上。 我可能做错了,因为napa server(或bundle exec napa server)会抛出错误而我不知道要找什么来解决它......

这里是我的堆栈跟踪

releases/current]# napa server
Napa server starting...
/home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/gems/napa-0.5.0/lib/napa/cli/base/server.rb:14:in spawn: can't get Master/Slave device (RuntimeError)
from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/gems/napa-0.5.0/lib/napa/cli/base/server.rb:14:in `server'
  from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/gems/napa-0.5.0/bin/napa:5:in `<top (required)>'
from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/bin/napa:23:in `load'
from /home/partners/.rvm/gems/ruby-2.2.3@my_awesome_app/bin/napa:23:in main

确实,这有效! bundle exec rackup config.ru

为什么呢?看来我对PTY有一些问题。也许是权限问题?

0 个答案:

没有答案