From DreamFactory
Jump to: navigation, search

Upgrading DreamFactory involves getting the required code via git and composer and then using the Laravel artisan command migrate system data and settings. In the Bitnami VM and Cloud images, DreamFactory root installation is in /opt/bitnami/apps/dreamfactory/htdocs. Because most of the installation is owned by root, nearly all the commands require sudo.

  1. Navigate to the install directory
    • $ cd /opt/bitnami/apps/dreamfactory/htdocs
  2. Stash and changes tracked by git
    • $ sudo git stash
  3. Get the latest code
    • $ sudo git checkout master
    • $ sudo git pull origin master
  4. Update composer
    • $ sudo php composer.phar self-update
  5. User composer to get dependencies
    • Note for commercial users: Copy your commercial license files into the working directory before running this command.
    • $ sudo php composer.phar install --no-dev
  6. Migrate the system data
    • $ sudo php artisan migrate --seed
    • $ sudo php artisan dreamfactory:service-type-migrate
  7. Reset permissions
    • $ sudo chown -R root:daemon storage/ bootstrap/cache/
    • $ sudo chmod -R 2775 storage/ bootstrap/cache/
  8. Clear caches
    • $ sudo php artisan clear-compiled
    • $ sudo php artisan config:clear
    • $ sudo php artisan cache:clear
  9. Restart the Bitnami stack
    • sudo ../../../ctlscript.sh restart
  10. Log in to your instance in the browser (you may need to refresh/clear browser cache.) Go to the Config tab and confirm the instance was upgraded.