Upgrades
From DreamFactory
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
- Linux users need to have Git installed, which can be obtained from your operating system's package manager.
- In these instructions, we will assume that your instance is installed at
~/dreamfactory-2.3.1-0/
. Anywhere you see this path substitute your own install path. - PHP
- You can add the path to your PHP executable to the system PATH variable to make calling your php easier.
- The path is
~/dreamfactory-2.3.1-0/php/bin/
- The path is
- 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 justphp
.
- You can add the path to your PHP executable to the system PATH variable to make calling your php easier.
Upgrade the System
- Navigate to the install directory
-
$ cd ~/dreamfactory-2.3.1-0/apps/dreamfactory/htdocs
-
- Stash and changes tracked by git
-
$ git stash
-
- Get the latest code
-
$ git checkout master
-
$ git pull origin master
-
- Update composer
-
$ ../../../php/bin/php composer.phar self-update
-
- User composer to get dependencies
- Note for commercial users: Copy your commercial license files into the working directory (
~/dreamfactory-2.3.1-0/apps/dreamfactory/htdocs/
) before running this command. -
$ ../../../php/bin/php composer.phar install --no-dev
- Note for commercial users: Copy your commercial license files into the working directory (
- Migrate the system data
-
$ ../../../php/bin/php artisan migrate --seed
-
$ ../../../php/bin/php artisan dreamfactory:service-type-migrate
-
- Clear caches
-
$ ../../../php/bin/php artisan config:clear
-
$ ../../../php/bin/php artisan cache:clear
-
- 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.