Upgrade - mymagic/open_hub GitHub Wiki
Method 1: Web Backend
After login to backend dashboard, OpenHub module automatically notify you on available upgrade.
Todo:
- Upgrade page will show you changes of this version. Click confirm to proceed (one way ticket)
- Wait for the upgrade to complete
Method 2: OpenHub Command
cd /var/www/protected
php yiic openhub upgrade
use parameter --force=1
to force upgrade when latest release version is lower than current installation. Use this carefully as you are command for a downgrade.
Method 3: Manually
SSH into your web server:
- Download latest release package, unzip and replace files PHP composer dependency packages and SQL database structure are included.
cd /home/ubuntu
wget https://openhub-main.s3-ap-southeast-1.amazonaws.com/github/release/openhub-latest.zip
When completed, unzip to /var/www
(you may wanto make a backup before this):
unzip openhub-latest.zip -d /var/www
- Apply migration update, including new database changes.
cd /var/www/protected
php yiic migrate up
- Refresh translation messages, generate the message php file across the system.
cd /var/www/protected
php yiic message config/message.php
-
Check if there's any changes required at
protected/.env
file -
Check all modules configs