Skip to content
robertjlooby edited this page Mar 5, 2015 · 7 revisions

The Easy Way

Run:

rake moonshine:update

If that rake task isn’t available, we’ll have to do it the hard way.

The Hard Way

Don’t worry, it’s not that hard :) Moonshine is a plugin, so we update it like any other plugin.

First check to see if Moonshine is installed in your application as a Git Submodule:

git submodule | grep moonshine

If you see vendor/plugins/moonshine in the output, then Moonshine is installed as Git submodule. If not, it’s installed directly in your application’s repository.

Updating the Moonshine Git Submodule

To update the Moonshine submodule, first, enter the Moonshine plugin directory:

cd vendor/plugins/moonshine

You’ll then want to pull the latest updates from GitHub:

git pull origin master

Then, change directories back to your RAILS_ROOT:

cd -

You’ll then want to commit and push these changes:

git commit vendor/plugins/moonshine -m "updating moonshine"

git push origin master #or whatever branch you're working on

Updating Moonshine without Submodules

To update a non-submodule install of Moonshine, run the following to re-install the plugin from GitHub. For

script/rails plugin install --force git://github.com/railsmachine/moonshine.git

You’ll then want to commit and push these changes:

git commit vendor/plugins/moonshine -m "updating moonshine"

git push origin master #or whatever branch you're working on

If you’re using Subversion, a svn commit vendor/plugins/moonshine -m "updating moonshine" will accomplish the same things.

Deploy!

Once that’s done, run a cap deploy (or cap production deploy if you’re using multistage support), and the new Moonshine features should be applied to your Rails app!

Clone this wiki locally