Upgrades

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.

Notes and Prerequisites

  1. Mac users need to have Git installed, which can be obtained from XCode's command line tools.
  2. In these instructions, we will assume that your instance is installed at /Applications/dreamfactory-2.X.X-X/. Anywhere you see this path substitute your own install path.
  3. PHP
    • You can add the path to your PHP executable to the system PATH variable to make calling your php easier.
      • The path is /Applications/dreamfactory-2.X.X-X/php/bin/
    • These instructions will assume you have NOT done this and will instead include the full path to the executable (../../../php/bin/php...)
    • If you have added PHP to the system PATH you may replace every instance of ../../../php/bin/php with just php.

Upgrade the System

  1. Open the Git Shell
  2. Navigate to the install directory
    • $ cd /Applications/dreamfactory-2.X.X-X/apps/dreamfactory/htdocs
  3. Stash and changes tracked by git
    • $ git stash
  4. Get the latest code
    • $ git checkout master
    • $ git pull origin master
  5. Update composer
    • $ ../../../php/bin/php composer.phar self-update
  6. User composer to get dependencies
    • Note for commercial users: Copy your commercial license files into the working directory (/Applications/dreamfactory-2.X.X-X/apps/dreamfactory/htdocs/) before running this command.
IF NOT USING ORACLE OR MONGODB RUN
$ ../../../php/bin/php composer.phar install --no-dev --ignore-platform-reqs

Otherwise

    • $ ../../../php/bin/php composer.phar install --no-dev
  1. Migrate the system data
    • $ ../../../php/bin/php artisan migrate --seed
  2. Clear caches
    • $ ../../../php/bin/php artisan config:clear
    • $ ../../../php/bin/php artisan cache:clear
  3. 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.