Open JPry opened 6 years ago
@JPry Thanks for this! Since we already have systemd and upstart config in the repo, do you want to PR this up?
@rmccue I'd be glad to submit a PR. I just a have a few questions before I do, since the specifics might need to change.
systemd.service
it's set to /etc/cavalcade/bin/cavalcade
. On a Mac when using Homebrew, something like /usr/local/bin/cavalcade
would be expected.~/Sites/
, and each project has its own folder there.One note here as well, is that I'm essentially telling launchctl
to run the following command:
bash -lc ~/projects/Cavalcade-Runner/bin/cavalcade /path/to/wp/site
I've done it this way make it the same as a user manually running it from their login shell using the terminal, which includes relevant PATH
settings. If anyone else has any additional expertise with running the launchctl
process without emulating bash
, I'd love more information on how to do that.
@JPry Pick whatever you think is best for the defaults, and include a comment header (if possible) to note how to change them. :) As it's only an example config, no need to worry too much about it I think.
This isn't so much an issue as something that I wanted to share for the benefit of others.
I set up Cavalcade for a local site (which is powered by Valet+), and I wanted to have Cavalcade automatically launch using the native Mac OS
launchctl
system.Here's the config file I ended up using, with specifics replaced:
This file is placed into my
~/Library/LaunchAgents/
directory with a.plist
extension. For consistency, I've matched the file name with the Labelsome-site.cavalcade
above. To load get this running, I then do this: