Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want a local Hudson to run on your Mac whenever you log in, try this.</p> <p>You'll want to set up a launchctl plist for it; that should look something like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt;UserName&lt;/key&gt; &lt;string&gt;yourid&lt;/string&gt; &lt;key&gt;Label&lt;/key&gt; &lt;string&gt;Hudson&lt;/string&gt; &lt;key&gt;EnvironmentVariables&lt;/key&gt; &lt;dict&gt; &lt;key&gt;HUDSON_HOME&lt;/key&gt; &lt;string&gt;/Users/yourid/.hudson&lt;/string&gt; &lt;/dict&gt; &lt;key&gt;ProgramArguments&lt;/key&gt; &lt;array&gt; &lt;string&gt;/usr/bin/java&lt;/string&gt; &lt;string&gt;-jar&lt;/string&gt; &lt;string&gt;/Users/yourid/Hudson/hudson.war&lt;/string&gt; &lt;/array&gt; &lt;key&gt;RunAtLoad&lt;/key&gt; &lt;true/&gt; &lt;/dict&gt; &lt;/plist&gt; </code></pre> <p>This assumes you've downloaded <code>hudson.war</code> to your home directory under <code>~/Hudson</code>, and that you want to run it as yourself (probably the best decisions.) Be sure that you define the <code>&lt;UserName&gt;</code> key or it will run as root!</p> <h2>Starting on login</h2> <ol> <li>Save the above as <code>/Library/LaunchAgents/hudson.plist</code></li> <li><p>Start it the first time with </p> <p>sudo launchctl load -w /Library/LaunchAgents/hudson.plist</p></li> </ol> <p>or log out and back in, which will do the same thing automatically.</p> <h2>Starting on reboot</h2> <ol> <li>Save the above as <code>/Library/LaunchDaemons/hudson.plist</code> </li> <li><p>Start it the first time with </p> <p>sudo launchctl load -w /Library/LaunchDaemons/hudson.plist</p></li> </ol> <p>or reboot your machine, which will do the same thing automatically.</p> <h2>Restarting Hudson</h2> <p>Hudson can't automatically restart under OS X, so if you need to stop it, issue the restart command</p> <pre><code>launchctl unload -w path_to_plist </code></pre> <p>I have found that sometimes it doesn't stop on the first execution of <code>launchctl unload</code>; in those cases just issue the command again.</p> <p>This will run under port 8080 as if you had run the command from the command line yourself, using the Winstone server built in to the <code>.war</code> file.</p> <p>I realize this doesn't specifically answer the "run it on port 80" question, but for development on your own laptop, I suggest that this is a better option.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload