Updates

Applying updates from git shouldn’t be difficult.

  1. Get the updates from a git remote:

git pull

if you are working on a personal fork of the project, use the following to get the changes from main repository

git pull <main_repository_link>
  1. Update the git submodules:

git submodule update --recursive --remote
  1. Install any updated composer dependencies:

php -d memory_limit=-1 ./vendor/bin/composer install -o
  1. Apply any database schema updates:

./bin/console doctrine:schema:update --force
  1. Update the web assets:

bower install
  1. Clear the cache:

./bin/console cache:clear --env=prod
  1. To commit the changes you have made, start with checking the status of your copy first:

git status

you can restore any deleted/damaged files by typing the following:

git checkout -- <file_name>
  1. Commit and push your updates:

git add .
git commit -m "explanation"
git push

That should be it.