0 like 0 dislike
1 view
in Ruby by anonymous Bilge (165k points)
vestacp üzerinde cronjob ile ruby script çalıştırmak istiyorum.

1 Answer

0 like 0 dislike
by anonymous Bilge (165k points)
rvm cron setup

rvm gemset use global

gem install bundler

rvm cron setup

/etc/init.d/cron restart

rvm env --path -- ruby-version

//Script File

#!/bin/sh

source /usr/share/rvm/environments/ruby-2.6.3

/usr/share/rvm/rubies/ruby-2.6.3/bin/ruby tester.rb
...