Question

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

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top