Difference between revisions of "Upgrading Dreamfactory within Gold"

From DreamFactory
Jump to: navigation, search
(SSH into your DreamFactory Gold server)
Line 3: Line 3:
  
 
First, we will upgrade the DreamFactory "Base" installation for all of your Gold instances.  
 
First, we will upgrade the DreamFactory "Base" installation for all of your Gold instances.  
<source lang="bash">
+
#* 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.
$ cd /var/www/launchpad
+
#* <source lang=bash>$ git checkout master</source>
$ sudo git pull
+
#* If you have unsaved changes, you'll receive a message indicating which files have changes in them. You will need to stash the changes.
</source>
+
#** '''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.)
This will pull the latest master branch. Now you will need to update the dependencies:
+
#** <source lang=bash>$ git stash</source>
<source lang="bash">
+
#** Repeat the checkout step.
$ sudo composer install --no-dev
+
# Pull the latest from git (again, using the appropriate tag -- master or version number).
</source>
+
#* <source lang=bash>$ git pull origin master</source>
Once composer finishes, you will be able to run any Database Migrations you'll need for the base dreamfactory database
+
# Reset permission on storage/ and bootstrap/cache/
<source lang="bash">
+
#* Bitnami local installs can skip this step. Bitnami cloud images, VMs, and manual installs will typically need to perform this step.
$ php artisan migrate --seed
+
#* <source lang=bash>$ sudo chown -R {web service user}:{your user group} storage/ bootstrap/cache/</source>
</source>
+
#* <source lang=bash>$ sudo chmod -R 2775 storage/ bootstrap/cache/</source>
 +
# Use Composer to update all the vendor repos.
 +
#* <source lang=bash>$ composer install --no-dev</source>
 +
# Migrate the database.
 +
#* <source lang=bash>$ php artisan migrate --seed</source>
 +
# 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>
 +
# Clear the application cache.
 +
#* <source lang=bash>$ php artisan cache:clear</source>

Revision as of 20:46, 6 October 2016

SSH into your DreamFactory Gold server

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

First, we will upgrade the DreamFactory "Base" installation for all of your Gold instances.

    • 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.
    • $ git checkout master
    • 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.)
      • $ git stash
      • Repeat the checkout step.
  1. Pull the latest from git (again, using the appropriate tag -- master or version number).
    • $ git pull origin master
  2. Reset permission on storage/ and bootstrap/cache/
    • Bitnami local installs can skip this step. Bitnami cloud images, VMs, and manual installs will typically need to perform this step.
    • $ sudo chown -R {web service user}:{your user group} storage/ bootstrap/cache/
    • $ sudo chmod -R 2775 storage/ bootstrap/cache/
  3. Use Composer to update all the vendor repos.
    • $ composer install --no-dev
  4. Migrate the database.
    • $ php artisan migrate --seed
  5. 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).
    • $ php artisan dreamfactory:service-type-migrate
  6. Clear the application cache.
    • $ php artisan cache:clear