In the default monolithic configuration, Helpy is a fairly standard Ruby on Rails app. Updating to a new version requires several steps. There are two main places you might want to get updates from:
- The
master
branch, which is generally stable but is where most dev work happens and should be considered to be an edge version. If you want to get the latest bleeding edge updates, pull frommaster
- The release branches. Here you can use the
release/stable
or specific version updates: ierelease/2.4.2
orrelease/2.5.0
Updating the community edition:
Whether you run the open source community edition or the cloud edition, start by updating the base app:
-
Get the latest version:
git pull
-
Update bundled gems:
bundle install
-
Run any new migrations, and update the assets:
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake assets:precompile
-
Restart the webserver.
Helpy Pro is a packaged version, which greatly simplifies the process of updating. Note that updated versions typically are not avaiable to Pro until several days after the community edition release. Update using the apt package manager:
sudo apt-get update
sudo apt-get upgrade
sudo helpy run db:migrate
sudo helpy restart
If you are running the cloud edition, perform the following additional steps:
-
Update the cloud gem. The major version should match the Helpy core major version.
bundle update helpy_cloud
-
Run the cloud installer:
rails g helpy_cloud:install
-
Update assets:
RAILS_ENV=production bundle exec rake assets:precompile
-
Restart webserver