0

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

Alex Tonkonozhenko
  • 1,514
  • 12
  • 26

1 Answers1

0

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

Alex Tonkonozhenko
  • 1,514
  • 12
  • 26