You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yurikuzn
changed the title
Upgrading by replacing app files and running migration command
Migrations, upgrading by replacing app files and running migration command
Apr 18, 2024
yurikuzn
changed the title
Migrations, upgrading by replacing app files and running migration command
Upgrading by replacing app files and running migration command
Apr 18, 2024
Secure platforms are enforcing read only root file system . This means that the script will fail when it will try to update the version in the config file in at the run time.
I'm not familiar with the details of the version number usage from the config file, but can suggest to either read thatvfrom the code base or update during container image build.
I'm not sure we can do it. We already have the config which is not read only. We already have the version parameter in the config which is writable by the application. We have also a read-only default config and the actual version will be taken from there. The config will contain the previous version. Using the version from the config was the most simple solution I could come up with. It's supposed to work in both docker and non-docker environments. Just compares two version numbers and runs needed scripts based on it.
If we are talking about docker implementation, all core EspoCRM files will be added while image build. The directories as data (where the config is located) and custom will be mapped to the host.
While starting the container, the entrypoint script will check the version, and run the bin/command migrate in case it requires.
yurikuzn
changed the title
Upgrading by replacing app files and running migration command
Upgrading by replacing files and running migration command
May 14, 2024
yurikuzn
changed the title
Upgrading by replacing files and running migration command
Upgrading by replacing files and running migration
May 14, 2024
An optional way to upgrade.
Steps:
bin/command migrate
. It will run needed prepare and after-upgrade scripts, run rebuild. The version parameter in config will be updated.Supposed to be used in docker installations.
The text was updated successfully, but these errors were encountered: