-
Notifications
You must be signed in to change notification settings - Fork 69
Updating Moonshine
Run:
rake moonshine:update
If that rake task isn’t available, we’ll have to do it 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.
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
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.
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!