What to set in --only for the single local server?
millisami opened this issue · comments
While setting up the cron, this is the line * * * * * /usr/local/rvm/gems/ruby-1.9.2-p180@global/bin/wd --check --only=my.app.com --path=/home/deploy/myapp/shared/config/deploy.yml
But I just have a single server where I'll be deploying and the cron tab is also set in the same machine. So, I'm little confused what goes in the --only
option?
I think the documentation overall could be better -- breaking the README up into pieces so it's clear how to handle common use cases.
That said, the --only flag is only useful if you have multiple servers listed in the domain: section of deploy.yml, and all of them are deploying out of cron.
If you just have a single server deploying out of cron, then remove the domain: section for that target from deploy.yml (which tells whiskey_disk you'll be doing a local deploy) and don't specify the --only flag in your cron job.
Let me know if that helps.