Apply web deployment manifests on Ubuntu nodes
Create isolated site accounts, validate both service configurations, and roll back newly installed files when activation fails.
This commit is contained in:
1 parent
aea049087d
commit
5384d70d03
4 files changed
+372
-1
No files matched your search
@@ -67,6 +67,39 @@ coulobre-web-node render coulobre-web-plan-1.json php-fpm > php-fpm.conf
|
||||
The command reads the manifest and packaged templates locally. The isolated
|
||||
Ubuntu check below demonstrates loading the configuration.
|
||||
|
||||
## Apply a manifest on an Ubuntu web node
|
||||
|
||||
Use a dedicated Ubuntu 26.04 node with Apache and PHP 8.5 FPM installed from
|
||||
the distribution packages. Enable FastCGI in Apache and start the native
|
||||
services before applying a manifest.
|
||||
|
||||
```sh
|
||||
sudo apt install apache2 php8.5-fpm
|
||||
sudo a2enmod proxy_fcgi
|
||||
sudo service php8.5-fpm start
|
||||
sudo service apache2 restart
|
||||
```
|
||||
|
||||
Install the matching Coulobre package in a root-owned virtual environment on
|
||||
the node. Review the completed preview and transfer its deployment manifest
|
||||
to the node. Apply it with the node operator account.
|
||||
|
||||
```sh
|
||||
sudo /opt/coulobre/bin/coulobre-web-node apply coulobre-web-plan-1.json
|
||||
```
|
||||
|
||||
The command reserves the account ID and domain on the node, creates a system
|
||||
user and a document root under `/srv/coulobre/web/<account-id>/public`, and
|
||||
installs Apache and PHP-FPM configuration. It validates both configurations,
|
||||
reloads PHP-FPM, waits for the per-site socket, then reloads Apache.
|
||||
|
||||
Reapply the same manifest to retry or verify an existing installation. The
|
||||
node checks the account registry for domain conflicts and protects existing
|
||||
configuration files. If a configuration check or reload fails, the command
|
||||
removes the configuration it added. It reloads the prior configuration for
|
||||
affected services and reports any recovery errors. The account reservation and
|
||||
document root stay available for the next attempt.
|
||||
|
||||
## Run an isolated PHP test site
|
||||
|
||||
Open a completed preview for the account's current domain and select **Download
|
||||
|
||||
Reference in new issue
Block a user