Updates¶
Applying updates from git shouldn’t be difficult.
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>
Update the git submodules:
git submodule update --recursive --remote
Install any updated composer dependencies:
php -d memory_limit=-1 ./vendor/bin/composer install -o
Apply any database schema updates:
./bin/console doctrine:schema:update --force
Update the web assets:
bower install
Clear the cache:
./bin/console cache:clear --env=prod
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>
Commit and push your updates:
git add .
git commit -m "explanation"
git push
That should be it.