RVM isnt setting environment with cron

后端 未结 3 632
青春惊慌失措
青春惊慌失措 2021-01-15 02:43

I\'m having a rough time executing script/runner with a cron and RVM. I believe the issues lie with the rvm environment not being set before the runner is executed.

3条回答
  •  囚心锁ツ
    2021-01-15 03:49

    You can use rvm wrappers:

    /home/deploy/.rvm/wrappers/ruby-2.2.4/ruby
    

    Source: https://rvm.io/deployment/cron#direct

提交回复
热议问题