Upgrades

From DreamFactory
Jump to: navigation, search
(Created page with "Upgrading DreamFactory involves getting the required code via git and composer and then using the Laravel artisan command migrate system data and settings. In these instructio...")
 
Line 1: Line 1:
 
Upgrading DreamFactory involves getting the required code via git and composer and then using the Laravel artisan command migrate system data and settings. In these instructions, we will assume that your instance is installed at <code>C:\Bitnami\dreamfactory-2.3.1-0\</code> (<code>/c/Bitnami/dreamfactory-2.3.1-0/</code> in the Git shell.) '''Anywhere you see this path substitute your own install path'''.  
 
Upgrading DreamFactory involves getting the required code via git and composer and then using the Laravel artisan command migrate system data and settings. In these instructions, we will assume that your instance is installed at <code>C:\Bitnami\dreamfactory-2.3.1-0\</code> (<code>/c/Bitnami/dreamfactory-2.3.1-0/</code> in the Git shell.) '''Anywhere you see this path substitute your own install path'''.  
  
 +
== Notes and Prerequisites ==
 +
 +
== Upgrade the System ==
 
# Navigate to the install directory
 
# Navigate to the install directory
 
#* <source lang="bash">$ cd /opt/dreamfactory</source>
 
#* <source lang="bash">$ cd /opt/dreamfactory</source>

Revision as of 16:47, 19 January 2017

Upgrading DreamFactory involves getting the required code via git and composer and then using the Laravel artisan command migrate system data and settings. In these instructions, we will assume that your instance is installed at C:\Bitnami\dreamfactory-2.3.1-0\ (/c/Bitnami/dreamfactory-2.3.1-0/ in the Git shell.) Anywhere you see this path substitute your own install path.

Notes and Prerequisites

Upgrade the System

  1. Navigate to the install directory
    • $ cd /opt/dreamfactory
  2. Stash and changes tracked by git
    • $ git stash
  3. Get the latest code
    • $ git checkout master
    • $ git pull origin master
  4. Update composer
    • $ composer 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.
    • $ composer install --no-dev
  6. Migrate the system data
    • $ php artisan migrate --seed
    • $ php artisan dreamfactory:service-type-migrate
  7. Reset permissions
    • $ sudo chown -R www-data:dfuser storage/ bootstrap/cache/
    • $ sudo chmod -R 2775 storage/ bootstrap/cache/
  8. Clear caches
    • $ php artisan config:clear
    • $ php artisan cache:clear
  9. 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.