<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;To update Moonshine to the latest and greatest, first check to see if Moonshine is installed in your application as a Git Submodule:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;git submodule | grep moonshine&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you see &lt;code&gt;vendor/plugins/moonshine&lt;/code&gt; in the output, then Moonshine is installed as Git submodule. If not, it&amp;#8217;s installed directly in your application&amp;#8217;s repository.&lt;/p&gt;
&lt;h2&gt;Updating the Moonshine Git Submodule&lt;/h2&gt;
&lt;p&gt;To update the Moonshine submodule, first, enter the Moonshine plugin directory:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;cd vendor/plugins/moonshine&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You&amp;#8217;ll then want to pull the latest updates from GitHub:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;git pull origin master&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Then, change directories back to your &lt;code&gt;RAILS_ROOT&lt;/code&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;cd -&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You&amp;#8217;ll then want to commit and push these changes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;git commit vendor/plugins/moonshine -m &quot;updating moonshine&quot;&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;git push origin master #or whatever branch you're working on&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Updating Moonshine without Submodules&lt;/h2&gt;
&lt;p&gt;To update a non-submodule install of Moonshine, run the following to re-install the plugin from GitHub:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;ruby script/plugin install --force git://github.com/railsmachine/moonshine_god.git&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You&amp;#8217;ll then want to commit and push these changes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;git commit vendor/plugins/moonshine -m &quot;updating moonshine&quot;&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;git push origin master #or whatever branch you're working on&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you&amp;#8217;re using Subversion, a &lt;code&gt;svn commit vendor/plugins/moonshine -m &quot;updating moonshine&quot;&lt;/code&gt; will accomplish the same things.&lt;/p&gt;
&lt;h2&gt;Deploy!&lt;/h2&gt;
&lt;p&gt;Once that&amp;#8217;s done, run a &lt;code&gt;cap deploy&lt;/code&gt; (or &lt;code&gt;cap production deploy&lt;/code&gt; if you&amp;#8217;re using capistrano-ext&amp;#8217;s multistage support), and the new Moonshine features should be applied to your Rails app@&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-26T01:17:17-08:00</created-at>
  <id type="integer">236745</id>
  <permalink>updating-moonshine</permalink>
  <repository-id type="integer">150235</repository-id>
  <title>Updating Moonshine</title>
  <updated-at type="datetime">2009-06-10T08:26:07-07:00</updated-at>
  <user-id type="integer">4497</user-id>
</wiki>
