dvs remote wizard
Interactive wizard for automatic remote configuration. Detects recipe, MySQL credentials, public URL, and optimal workflow from a remote server.
Usageβ
dvs remote wizard [name] [options]
Argumentsβ
| Argument | Description |
|---|---|
[name] | Name of the remote configuration (e.g., prod, staging). Used as filename for .dvs/remotes/<name>.conf |
Optionsβ
| Option | Description |
|---|---|
--host <host> | SSH hostname (prompted if not provided) |
--user <user> | SSH username (default: www-data) |
--port <port> | SSH port (default: 22) |
--pull | Execute pull after configuration |
Supported Recipesβ
The wizard is only compatible with:
- PrestaShop
- WordPress
Running the wizard on other recipes will display an error.
Descriptionβ
The wizard automates the creation of remote configuration by:
- Recipe detection: Identifies WordPress or PrestaShop applications
- Installation path: Finds application installations on the remote server
- MySQL credentials: Extracts database configuration from config files
- Database engine detection: Detects MariaDB vs MySQL and handles engine mismatches
- Application version: Detects PrestaShop/WordPress version
- PHP version: Recommends compatible PHP version based on app version
- Public URL: Detects the site's public URL from database or config
- Workflow selection: Recommends the optimal deployment workflow
- Dumps configuration: Optional configuration for SQL backup dumps
Examplesβ
Basic usageβ
dvs remote wizard
The wizard will prompt for:
- Application name (if not already configured)
- Recipe type (if not already configured)
- SSH host
- SSH user
- SSH port
With SSH optionsβ
dvs remote wizard prod --host example.com --user deploy
With automatic pullβ
dvs remote wizard prod --host example.com --pull
Fresh Directory Setupβ
The wizard can be run in an empty directory to create a new application:
- Creates the
.devspacesconfiguration file - Creates the application config in
/config/apps/<name>/ - Sets up the web root folder
- Configures the remote connection
- Optionally pulls the data
Detected Informationβ
For PrestaShopβ
- Config file:
app/config/parameters.php(1.7+) orconfig/settings.inc.php(1.6) - Database: host, user, password, name, table prefix
- Public URL: from
ps_shop_urltable - Version: from
defines.inc.php,AppKernel.php, orcomposer.json
For WordPressβ
- Config file:
wp-config.php - Database: DB_HOST, DB_USER, DB_PASSWORD, DB_NAME
- Public URL: from WP_HOME, WP_SITEURL, or wp_options table
- Version: from
wp-includes/version.php
Database Engine Handlingβ
The wizard detects the remote database engine (MariaDB or MySQL) and compares it with locally installed services.
If there's a mismatch:
- Install recommended service: Installs the matching DB service
- Use installed service: Uses an already installed matching service
- Continue anyway: Proceed with cross-engine compatibility (may have issues)
When multiple DB services are installed, the wizard auto-selects the one matching the remote engine.
SQL Dumps Configurationβ
If SQL backup dumps are available on the remote server, the wizard can configure the [dumps] section:
- Path selection: Browse remote filesystem to select the dumps folder
- Pattern: File pattern to match dumps (default:
*/*.sql*for subdirectories) - Strategy:
latest(auto-select newest) orinteractive(choose each time)
Requirementsβ
- SSH access to the remote server (key or password authentication)
- Recipe must be
prestashoporwordpress
See Alsoβ
- Remote Configuration - Manual configuration reference
- Configure Command - Interactive configuration (manual)
- Pull Command - Pull data from remote