Upgrades

From DreamFactory
Jump to: navigation, search
Line 23: Line 23:
 
#* <source lang="bash">$ sudo php artisan config:clear</source>
 
#* <source lang="bash">$ sudo php artisan config:clear</source>
 
#* <source lang="bash">$ sudo php artisan cache:clear</source>
 
#* <source lang="bash">$ sudo php artisan cache:clear</source>
 +
# Optimize the application
 +
#* <source lang="bash">$ sudo php artisan optimize</source>
 
# Restart the Bitnami stack
 
# Restart the Bitnami stack
 
#* <source lang="bash">sudo ../../../ctlscript.sh restart</source>
 
#* <source lang="bash">sudo ../../../ctlscript.sh restart</source>
 
# 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.
 
# 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.

Revision as of 20:07, 2 November 2016

Upgrading DreamFactory involves getting the required code via git and composer and then using the Laravel artisan command migrate system data and settings. In the Bitnami VM and Cloud images, DreamFactory root installation is in /opt/bitnami/apps/dreamfactory/htdocs. Because most of the installation is owned by root, nearly all the commands require sudo.

  1. Navigate to the install directory
    • $ cd /opt/bitnami/apps/dreamfactory/htdocs
  2. Stash and changes tracked by git
    • $ sudo git stash
  3. Get the latest code
    • $ sudo git checkout master
    • $ sudo git pull origin master
  4. Update composer
    • $ sudo php composer.phar 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.
    • $ sudo php composer.phar install --no-dev
  6. Migrate the system data
    • $ sudo php artisan migrate --seed
    • $ sudo php artisan dreamfactory:service-type-migrate
  7. Reset permissions
    • $ sudo chown -R root:daemon storage/ bootstrap/cache/
    • $ sudo chmod -R 2775 storage/ bootstrap/cache/
  8. Clear caches
    • $ sudo php artisan clear-compiled
    • $ sudo php artisan config:clear
    • $ sudo php artisan cache:clear
  9. Optimize the application
    • $ sudo php artisan optimize
  10. Restart the Bitnami stack
    • sudo ../../../ctlscript.sh restart
  11. 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.