We suggest you use git to update Myddleware. If you don’t have git on your server, here are the instructions on how to install it : https://git-scm.com/download/linux
Before doing anything else, create a backup of your Myddleware before updating.
After the backup, go to the root directory of Myddleware and run the command as stated below to update all the Myddleware files.
If you have never used git with Myddleware, please run these commands from your Myddleware root directory:
git init git remote add -t master origin https://github.com/Myddleware/myddleware.git git fetch git checkout origin/master -ft
Then you can upgrade Myddleware with this command :
php bin/console myddleware:upgrade --env=background
If you have a problem during the upgrade you can do it step by step by following this tutorial :
If you get this message below during the pull, you have probably changed at least one file in the Myddleware standard code. Please read the good practices article to learn how to add custom upgraded & safe code in Myddleware. It will help you manage the conflicts. You can also delete these files, run the pull and you will get the latest version of this files. However, you will loose your custom code.
Then update Symfony vendors and their dependencies:
php composer.phar install --no-plugins
At this stage, if it is your first upgrade with git, you will have to answer “yes” several times to this question:
Then run this command to update Myddleware’s database:
php bin/console doctrine:schema:update --force --env=background php bin/console doctrine:fixtures:load --append --env=background
Then, please change your myddleware version parameter “myd_version” into the file <myddleware>\app\config\parameters.yml using the version number in the file <myddleware>\app\config\parameters.yml.dist
Finally clear the cache and refresh css and js files with these commands:
rm -rf var/cache/* php bin/console assetic:dump --env=background --no-debug php bin/console assets:install web --env=background
If you encounter any difficulties updating Myddleware, please contact us on our forum : https://github.com/Myddleware/myddleware/issues