You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing a service file where you plan to use a chruby-selected ruby, there are a few important things to keep in mind:
start-stop-daemon requires a single 'daemon' command
chruby needs to be ran from the deploy user
1 means we cannot trivially throw chruby-exec RUBY -- COMMAND in there, or even chruby RUBY && command. Instead, a simple wrapper script can be created.
Here's a wrapper script example that runs rake with chruby-selected MRI 2.0.0: