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
Passenger + Rails running bash commands
-
16-07-2023 - |
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
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow