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
  • Select an option

  • Save yemartin/179369661ff880df5563a1d932329ed0 to your computer and use it in GitHub Desktop.

Select an option

Save yemartin/179369661ff880df5563a1d932329ed0 to your computer and use it in GitHub Desktop.

Revisions

  1. yemartin revised this gist Dec 5, 2018. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,4 @@
    # chruby version
    # Run mailcatcher on startup, chruby version

    Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run `launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist`.

    ~~If you use pow, `echo 1080 > ~/.pow/mailcatcher` and go to http://mailcatcher.dev, otherwise use [http://localhost:1080](http://localhost:1080).~~

    Currently pow doesn't seem to pass websockets through correctly. Looking into this.
    Adjust the ruby version according to your environment.
  2. yemartin revised this gist Dec 5, 2018. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions me.mailcatcher.plist
    Original file line number Diff line number Diff line change
    @@ -15,9 +15,5 @@
    <true/>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/tmp/me.mailcatcher.err</string>
    <key>StandardOutPath</key>
    <string>/tmp/me.mailcatcher.out</string>
    </dict>
    </plist>
  3. yemartin revised this gist Dec 5, 2018. 2 changed files with 19 additions and 13 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # chruby version

    Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run `launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist`.

    ~~If you use pow, `echo 1080 > ~/.pow/mailcatcher` and go to http://mailcatcher.dev, otherwise use [http://localhost:1080](http://localhost:1080).~~
    30 changes: 17 additions & 13 deletions me.mailcatcher.plist
    Original file line number Diff line number Diff line change
    @@ -2,18 +2,22 @@
    <!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>$SHELL --login -c "mailcatcher --foreground"</string>
    </array>
    <key>KeepAlive</key>
    <true/>
    <key>RunAtLoad</key>
    <true/>
    <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/>
    <key>StandardErrorPath</key>
    <string>/tmp/me.mailcatcher.err</string>
    <key>StandardOutPath</key>
    <string>/tmp/me.mailcatcher.out</string>
    </dict>
    </plist>
  4. @sj26 sj26 revised this gist Feb 17, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run `launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist`.

    If you use pow, `echo 1080 > ~/.pow/mailcatcher` and go to http://mailcatcher.dev, otherwise use [http://localhost:1080](http://localhost:1080).
    ~~If you use pow, `echo 1080 > ~/.pow/mailcatcher` and go to http://mailcatcher.dev, otherwise use [http://localhost:1080](http://localhost:1080).~~

    Currently pow doesn't seem to pass websockets through correctly. Looking into this.
  5. @sj26 sj26 revised this gist Feb 10, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run `launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist`.

    If you use pow, `echo 1080 > ~/.pow/mailcatcher` and go to http://mailcatcher.dev, otherwise use http://localhost:1080.
    If you use pow, `echo 1080 > ~/.pow/mailcatcher` and go to http://mailcatcher.dev, otherwise use [http://localhost:1080](http://localhost:1080).
  6. @sj26 sj26 revised this gist Feb 10, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run `launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist`.
    Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run `launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist`.

    If you use pow, `echo 1080 > ~/.pow/mailcatcher` and go to http://mailcatcher.dev, otherwise use http://localhost:1080.
  7. @sj26 sj26 created this gist Jan 19, 2012.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run `launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist`.
    19 changes: 19 additions & 0 deletions me.mailcatcher.plist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <?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>$SHELL --login -c "mailcatcher --foreground"</string>
    </array>
    <key>KeepAlive</key>
    <true/>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>