ruby on rails - system() calls successful from script/console but silently failing in application -


Specifically calls on gpg

I'm having difficulty tracking logs as a problem, do not give any output to these failed calls and they work perfectly with production consoles.

I have tried to specify the path of gpg:

  system "path / in / gpg - all-my - encryption-option   

And it has ensured that the passenger is running under the same user as I am entering the console. I have also tried to withdraw the order looking for a more strong reaction and tried% x () .

No luck. Prayers, dances, and violence have proven equally worthless

In this way, you can try to call a Bash script directly, Instead of handling the entry of issues:

  #! / Bin / bash # my_gpg_script.sh set -e set -u set - X set -v path / per / gpg --all - My - encryption -options & gt; /var/log/whats_happening.log   

then call system "my_gpg_script.sh" by Ruby.

Comments