Upgrading Dreamfactory within Gold

From DreamFactory
Jump to: navigation, search

SSH into your DreamFactory Gold server

Once you're in your DreamFactory Gold instance, you'll need access to /var/www/launchpad.

First, we will upgrade the DreamFactory "Base" installation for all of your Gold instances. Navigate to /var/www/launchpad

    • If you're updating to the latest version, you'll checkout the master tag. If you're moving to a specific version number, you'll checkout that version number as the tag.
    • <source lang=bash>$ git checkout master</source>
    • If you have unsaved changes, you'll receive a message indicating which files have changes in them. You will need to stash the changes.
      • You must do this step BEFORE checkout if you have made changes to or replaced any files in the main DreamFactory repo (such as changes to composer.json.)
      • <source lang=bash>$ git stash</source>
      • Repeat the checkout step.
  1. Pull the latest from git (again, using the appropriate tag -- master or version number).
    • <source lang=bash>$ git pull origin master</source>
    • <source lang=bash>$ sudo chmod -R 2775 storage/ bootstrap/cache/</source>
  2. Use Composer to update all the vendor repos.
    • <source lang=bash>$ composer install --no-dev</source>
  3. Migrate the database.
    • <source lang=bash>$ php artisan migrate --seed</source>
  4. If upgrading from DreamFactory 2.0 or 2.1 to DreamFactory 2.2 or higher, migrate the old service types to the new ones (add the --pretend option to see what it will change).
    • <source lang=bash>$ php artisan dreamfactory:service-type-migrate</source>
  5. Clear the application cache.
    • <source lang=bash>$ php artisan cache:clear</source>

Now that the base launchpad directory has been upgraded, you still will need to perform some of these actions on your DreamFactory instances. This is done by a process we call "encapsulation". It basically mounts an individual instance to a temporary location so you can perform actions from the shell on it.