4
매 10 분마다 실행해야하는 Heroku 예약 작업이 있습니다. 단순히 뭔가를하는 컨트롤러의 동작에 HTTP GET 요청을합니다. 나는 레이크을 수행 할 때Heroku에서 예약 한 작업이 '명령을 찾을 수 없음'을 반환하지만 숫양에서 작동합니다.
desc "This task is called by the Heroku scheduler add-on"
task :send_notifications => :environment do
response = HTTParty.get('http://sendnotificationapp.com/sms/send_notifications')
end
, 작업이 제대로 작동과 기능 :
heroku rake send_notifications
을 비록 내가 10 분마다 실행되도록 설정 Heroku가 스케줄러 GUI를 사용하는 경우, 그것은 작동하지 않습니다.
Starting process with command `send_notifications` by [email protected]
Starting process with command `send_notifications`
bash: send_notifications: command not found
Process exited with status 127
어떤 생각 대신 나는 다음과 같은 오류가 발생합니다?
감사합니다.
정말 대단합니다. 감사! – dougiebuckets