amazon ec2 - elastic beanstalk setting php crontab with cron.yaml -


i've read elastic beanstalk periodic tasks manual here, , after looking @ code in cron.yaml file:

version: 1 cron:  - name: "backup-job"          # required - unique across entries in file    url: "/backup"              # required - not need unique    schedule: "0 */12 * * *"    # required - not need unique 

im not sure how execute following command:

 php /var/www/html/myfolder/task.php 

should url "/var/www/html/myfolder/task.php" or "php /var/www/html/myfolder/task.php"?

the url value called sqs daemon on worker instance when executing task. in case, daemon connect localhost , make following request:

post /backup http/1.1 host: localhost user-agent: aws-sqsd/1.1 content-type: application/json ... 

as described here.

in other words, script should run when executing:

curl -x post http://localhost/backup 

from worker instance.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -