Skip to content

Instantly share code, notes, and snippets.

@yemartin
Forked from sj26/README.md
Last active December 5, 2018 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yemartin/179369661ff880df5563a1d932329ed0 to your computer and use it in GitHub Desktop.
Save yemartin/179369661ff880df5563a1d932329ed0 to your computer and use it in GitHub Desktop.
Run MailCatcher in the background, always, on OS X

Run mailcatcher on startup, chruby version

Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist. Adjust the ruby version according to your environment.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>me.mailcatcher</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-i</string>
<string>-c</string>
<string>source '/usr/local/share/chruby/chruby.sh'; chruby 2.3.1; mailcatcher --foreground</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment