For packages that are built from Git or SVN repos, it would be nice if an fserver cron task could automatically run drush fserver-package to build new releases.
For packages that are built from Git or SVN repos, it would be nice if an fserver cron task could automatically run drush fserver-package to build new releases.
Comments
Comment #1
eugenmayer commentedWell yeah, similar to the backup and migrate implementatino. Currently iam doing this with drush fserver-apckage and the server cron
Comment #2
danepowell commentedYeah, unfortunately I can't do it with system cron because my feature server site is managed in Aegir, and thus the system path of the site changes frequently.
Comment #3
eugenmayer commentedWell we also use aegir, but i have implemented some extensions maintain let aegir maintain symlinks to the "sites" installed on server / remote. So under aegir you have (on the remote / client)
aegir/sites/yourdomain1
aegir/sites/yourdomain2
aegir/sites/yourdomain3
so you always can do those crons without caring for the current platform..
I have also implemented a small tool called "forallsites" and a small wrapper for drush, so i can do stuff like
forallsite mdrush -u 1 cron
We also deploy the aliases on the remotes ( .drush/yoursite ), so you can also run drush @yourdomaint -u 1 cron.
Anyway, we have a forked version of aegir, so wont help you too much here. But maybe the approaches / ideas are helpful
Comment #4
danepowell commentedI've figured out how to use system cron as you suggested. But I still thing this would be better handled internally. I think using hook_cron would be best- i.e.:
Note that this doesn't work as-is, because drush_fserver_package() only really works if it's called from drush. I'm not sure how to call that command from the module.
Comment #5
danepowell commentedComment #6
danepowell commentedJust FYI, I've found that using system crontab is not viable, because Aegir wipes out the aegir user's crontab on upgrades. Have you found a workaround for this (other than manually fixing crontab each time)?