This update is not as involved as the update to v1.3, but we have to run an automatic content update so we bring existing settings into the database.
Upgrade Server (production)
If you are upgrading your production server, first ssh into the server. And it's always good practice to get your server up to date first.
$ sudo apt-get update $ sudo apt-get upgrade -y
Change into your Sapwood project directory. Remember, this is different depending on your setup.
$ cd ~/apps/sapwood
Upgrade your code to the latest release.
$ git checkout release $ git pull origin release
Then install any new gems (there shouldn't be any new gems).
$ bundle install
Transition Content (production)
First, back up your database before we go any farther (you can also do this through the UI).
$ RAILS_ENV=production bundle exec rake sapwood:db:backup
Then migrate your database.
$ RAILS_ENV=production bundle exec rake db:migrate
Last, you can run the auto-update rake task.
$ RAILS_ENV=production bundle exec rake sapwood:update:one_four
Precompile Assets (production)
Update your content and precompile your assets.
$ RAILS_ENV=production bundle exec rake assets:precompile
Then stop and start your server (this is better than restarting in this case). In development, this is:
$ bundle exec rails s
$ sudo service unicorn_sapwood stop $ sudo service unicorn_sapwood start
Now you should be up and running!