- Backup database (mysqldump --host=127.0.0.1 -u -p --single-transaction --quick --lock-tables=false connect > ~/piqlconnect_db-$(date +%F).sql)
- Stop PiqlConnect
- Checkout new release branch
- Install php 7.4 following these steps: https://www.cloudbooklet.com/install-php-7-4-on-ubuntu/
- Install php extentions (sudo apt install php-xml php-pear php-bcmath php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y)
- Install php mongodb support (pecl install mongodb)
- Add mongodb extention to php.ini
- Run buildComposer.sh
- Install NodeJS version 10 following these steps: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04)
- Run the automated update script
- Check that there are no obvious data issues and that PiqlConnect is functioning as intended
- Stop PiqlConnect
- Start the database container
- Drop the connect database
- Restore the database backup
- Checkout the previous version of PiqlConnect
- Rebuild the environment based on the procedure for that version. Make sure you don't run any database migrations
- Check that all is OK and retry the upgrade