|
|
|
|
|
- Overview
- How to?
- Principle
- How to?
- Important: Managing directories and data files
- Limitations
Installing a WEBDEV website with zero-downtime update
Starting with version 24, you can update a Session or AWP site without disconnecting users. The update of a WEBDEV Session or AWP website does not affect connected users. Active users stay on the old version. They will only have access to the new version of the site the next time they log in. This deployment mode allows session sites to be deployed with zero downtime. WARNING: this mode is not recommended for: - sites containing Active WEBDEV Pages without context.
- sites with static pages.
- PHP sites.
By using this deployment mode, URLs change each time a new update is deployed, which affects the SEO of these pages and prevents users from remembering them. Note: This feature is only available for sites deployed with WEBDEV version 24 and higher.. Principle To avoid disconnecting users, the server maintains several versions of the site. By default, 4 previous versions are kept on the server. How to? To install a site without disconnecting users during the update: - Case of a first site deployment:
- Deploy your site for the first time.
In the plan for the zero-downtime update, select the option "Deploy without disconnecting users". Note: Installation is similar to classic mode (as the site has never been deployed, there can be no logged-in user!). - In future updates, the site will automatically install itself without having to worry about whether or not users are connected.
- Case of a site already deployed: If the site was already installed using the "classic" method:
- During the first installation using the option "Deploy without disconnecting users", ALL users will be disconnected.
- During the following installations/deployments, users will not be disconnected.
This new mode applies from the second installation.
Important: Managing directories and data files If you use an installation without disconnecting users during the update: - use fDataDir to handle or access data files of the site. When writing, do not use fWebDir or fExeDir because the data will not be synchronized between the different site updates. Only fDataDirUser guarantees the use of a single directory shared between the different versions of the site.
- to handle the directory <Project Name>_WEB, use fWebDir and/or FolderWeb. Do not use the directory name directly (<Project Name>_WEB should not appear in your code).
Limitations Caution: It is not possible to redo a "classic" installation after a "no-disconnect" installation.. If you want to reinstall your site using the "classic" method, you must: - Uninstall the site.
- Delete from the web server (IIS or Apache) the virtual directories that have been created for this site.
- Reinstall the site in classic mode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|