Upgrades Ubuntu 16
From DreamFactory
Drewpearce (Talk | contribs) (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...") |
m (Jason moved page DreamFactory/APT/Ubuntu 16.04/Upgrades to DreamFactory/APT/Ubuntu 16.04/Upgrades Ubuntu 16) |
||
(9 intermediate revisions by 2 users 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'''. We will also assume your installed dreamfactory in < | + | 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'''. We will also assume your installed dreamfactory in <code>/opt/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 /opt/dreamfactory</source> | #* <source lang="bash">$ cd /opt/dreamfactory</source> | ||
Line 8: | Line 9: | ||
#* <source lang="bash">$ git checkout master</source> | #* <source lang="bash">$ git checkout master</source> | ||
#* <source lang="bash">$ git pull origin master</source> | #* <source lang="bash">$ git pull origin master</source> | ||
+ | # Update composer | ||
+ | #* <source lang="bash">$ composer self-update</source> | ||
+ | # User composer to get dependencies | ||
+ | #* '''Note for commercial users:''' Copy your commercial license files into the working directory before running this command. | ||
+ | #* <source lang="bash">$ composer install --no-dev --ignore-platform-reqs</source> | ||
+ | # Migrate the system data | ||
+ | #* <source lang="bash">$ php artisan migrate --seed</source> | ||
+ | # Reset permissions | ||
+ | #* <source lang="bash">$ sudo chown -R www-data:dfuser storage/ bootstrap/cache/</source> | ||
+ | #* <source lang="bash">$ sudo chmod -R 2775 storage/ bootstrap/cache/</source> | ||
+ | # Clear caches | ||
+ | #* <source lang="bash">$ php artisan config: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. |
Latest revision as of 07:33, 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. We will also assume your installed dreamfactory in /opt/dreamfactory
just like in the Installation instructions.
- Perform a Backup
- Navigate to the install directory
-
$ cd /opt/dreamfactory
-
- Stash and changes tracked by git
-
$ git stash
-
- Get the latest code
-
$ git checkout master
-
$ git pull origin master
-
- Update composer
-
$ composer self-update
-
- 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 --ignore-platform-reqs
- Migrate the system data
-
$ php artisan migrate --seed
-
- Reset permissions
-
$ sudo chown -R www-data:dfuser storage/ bootstrap/cache/
-
$ sudo chmod -R 2775 storage/ bootstrap/cache/
-
- Clear caches
-
$ php artisan config:clear
-
$ php artisan cache:clear
-
- 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.