Upgrading the portal - SonarSoftware/customer_portal GitHub Wiki

Upgrading the portal generally requires nothing more than downloading the latest portal files, copying them over the top of your existing files, and running a few commands.

To get the latest version of the portal, go to a directory you want to download the files to (for example, your home directory.) You can access your home directory by typing cd ~. Download the latest customer portal by typing wget https://github.com/SonarSoftware/customer_portal/archive/master.zip and then unzip master.zip.

Once a new version is downloaded, run cp -R customer_portal-master/portal/* /usr/share/portal/. This will copy the new files over. After copying them, run the following commands:

  • php /usr/share/portal/artisan migrate to setup any new database changes
  • php /usr/share/portal/artisan cache:clear to clear all the cached data
  • php /usr/share/portal/artisan view:clear to clear the cached views
  • php /usr/share/portal/artisan optimize, php /usr/share/portal/artisan route:cache and php /usr/share/portal/artisan config:cache to optimize the portal

You can also enable automatic updates if you'd prefer.