質問

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