Skip to content

Upgrade

Jorrit Steetskamp edited this page Apr 6, 2020 · 7 revisions

To upgrade an existing installation, follow these steps:

  1. To pull the newest source code from the master branch:

git pull origin master

Replace master with test to pull the test branch.

  1. Copy or move the content of folder /web to the public folder on your server. Exclude file app_dev.php or app.phpfrom this action.

  2. To check if new dependencies should be installed:

composer update

  1. To update the database schema:

php bin/console doctrine:schema:update --force

Only use the --force parameter if you are sure what you are doing. Forcing the update can cause data loss.

  1. To clear the Symfony cache:

php bin/console cache:clear --no-warmup --env=prod

Replace prod with dev if you are running the application in the development environment. If this command does not work, you could also remove the cache folder inside /var.

In the main README of this repo you can read how to install a fresh new application.

Clone this wiki locally