Upgrades MacOS

From DreamFactory
Jump to: navigation, search
DreamFactoryOSX10.11Upgrades MacOS
(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...")
 
 
(2 intermediate revisions by one other user not shown)
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 you are logged in as a user named dfuser. '''Anywhere you see this username substitute your own'''. This should be the same user you used for installation. We will also assume your installed dreamfactory in <code>/usr/local/var/dreamfactory</code> just like in the '''Installation''' instructions.
 
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 you are logged in as a user named dfuser. '''Anywhere you see this username substitute your own'''. This should be the same user you used for installation. We will also assume your installed dreamfactory in <code>/usr/local/var/dreamfactory</code> just like in the '''Installation''' instructions.
  
 +
# [[DreamFactory/Upgrades#Perform_a_Backup|Perform a Backup]]
 
# Navigate to the install directory
 
# Navigate to the install directory
 
#* <source lang="bash">$ cd /usr/local/var/dreamfactory</source>
 
#* <source lang="bash">$ cd /usr/local/var/dreamfactory</source>
Line 15: Line 16:
 
# Migrate the system data
 
# Migrate the system data
 
#* <source lang="bash">$ php artisan migrate --seed</source>
 
#* <source lang="bash">$ php artisan migrate --seed</source>
#* <source lang="bash">$ php artisan dreamfactory:service-type-migrate</source>
 
 
# Clear caches
 
# Clear caches
 
#* <source lang="bash">$ php artisan config:clear</source>
 
#* <source lang="bash">$ php artisan config:clear</source>
 
#* <source lang="bash">$ php artisan cache:clear</source>
 
#* <source lang="bash">$ php artisan cache:clear</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.

Latest revision as of 07:28, 11 July 2022

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 you are logged in as a user named dfuser. Anywhere you see this username substitute your own. This should be the same user you used for installation. We will also assume your installed dreamfactory in /usr/local/var/dreamfactory just like in the Installation instructions.

  1. Perform a Backup
  2. Navigate to the install directory
    • $ cd /usr/local/var/dreamfactory
  3. Stash and changes tracked by git
    • $ git stash
  4. Get the latest code
    • $ git checkout master
    • $ git pull origin master
  5. Update composer
    • $ composer self-update
  6. 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
  7. Migrate the system data
    • $ php artisan migrate --seed
  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.