====== Update Vibecat ====== Vibecat has three things that can be updated: **web applications** (WARs), **plug-ins** and **Vibecat itself**. ==== Web applications - no restart ==== A web application whose source is a folder or pattern always runs the latest WAR. Drop a newer WAR into the folder (or use //Upload// or the [[vibecat:plugins:webapps|Web Application plug-in]] ''POST /upload'') and the watcher deploys it within a few seconds (''watchSeconds''). The [[vibecat:plugins:deployment-log|Deployment Log]] records who deployed what, and its morgue lets you go back. ==== Plug-ins ==== A plug-in is a jar in the ''plugins'' folder. Replace the jar and **restart Vibecat** - replacing a jar while Vibecat runs breaks the plug-in page until the restart. Settings are kept in the data folder, so they survive the update. ==== Vibecat itself ==== The version has the form ''yy.MM.ddHH'' (shown on the Server page and in the sidebar); the history is in ''versions/versions.json'' and on the page [[vibecat:history|Version history]]. ^ Installation ^ How to update ^ | Windows setup (''Vibecat__Setup.exe'') | Run the new setup over the old one: it asks for folder, service name and ports (silent: ''/S /D=... /SERVICE=... /HTTPPORT=... /ADMINPORT=...''). | | Windows ZIP package | Stop the service, unpack over the installation folder, run ''install-windows.ps1'' again (updates the service's jar list), start the service. | | Debian / Ubuntu from a Windows PC | Vibemosphere Connection Manager, **Scripts > Install from Setups ...** (see below) | | Debian / Ubuntu | Run ''sudo ./install-linux.sh'' of the new package; it updates ''/opt/vibecat'' and the systemd unit. | | Docker | Pull the new image and recreate the container; ''conf'', ''webapps'' and ''data'' volumes keep your configuration. | | From source | ''build.cmd'' builds ''vibecat.jar''. If a running Vibecat locks the jar the new one waits as ''vibecat.jar.new'' and replaces it at the next start. | The data folder (''--data-dir'', default ''%ProgramData%\Vibemosphere\vibecat'') is not touched by an update. ==== Checklist ==== - Create a [[vibecat:backup|backup]]. - Read the version history on the Server page. - Install the new version (table above). - After the start open the Server page: version, Tomcat and Java versions, uptime; and the Log page for deployment errors. - Run the [[vibecat:global_documentation|global documentation]] to compare ports, applications and plug-ins with what you expect. The **[[vibecat:plugins:auto-updater|Auto Updater]]** plug-in publishes an update repository for ISSP products (ingest folder, signing, packaging); it is switched off until you enable it. ===== Install and update with the Vibemosphere Connection Manager ===== **Scripts > Install from Setups ...** takes the newest ''Vibecat_*.zip'' of the local setup folder, uploads it to the SSH endpoint and installs or updates it. * **Instance name**: empty = ''/opt/vibecat'' (service ''vibecat''), otherwise ''/opt/vibecat-'' with its own service and data folder. * Existing instance: the service is stopped, the files are updated and only the filled fields are changed (admin port and bind address, trusted networks, HTTP port and bind address). If the new settings do not start, the previous configuration is restored. * **Install / update program files** off: change settings only. * The script refuses to open the administration to the network without trusted networks. * **Allow Docker** adds the service user to the group ''docker'' (root rights, see [[vibecat:plugins:system-info|System Info]]).