I have Rails app, server is Passenger + nginx.
In my code I'm running Slic3r via %x[]. But it doesn't run and doesn't produce any output.
I also print run command there and if I run it in bash or in console it works.
My server is Digitalocean, Ubuntu + I use RVM

P.S.: also trying to use remote debug from RubyMine, but it also doesn't work

有帮助吗?

解决方案

The answer wa simple: according to http://blog.bigbinary.com/2012/10/18/backtick-system-exec-in-ruby.html I found that backticks doesn't output STDERR so I just added %x[#{my_command} 2>&1] to capture it

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top