dvs remote configure
Configure a remote server interactively.
Syntaxβ
dvs remote configure <name> [options]
Optionsβ
| Option | Description |
|---|---|
--type <transport> | Transport type: ssh, sftp, ftp, s3 |
Exampleβ
dvs remote configure prod --type ssh
Interactive Flowβ
- Transport selection (if not specified)
- Connection settings: host, port, user
- Component configuration:
- Files: remote path, excludes
- Database: credentials, database name
- Dumps: path, pattern (optional)
Configuration Fileβ
Created at <app-dir>/.dvs/remotes/<name>.conf:
[default]
transport = ssh
host = prod.example.com
user = deploy
[files]
path = /var/www/myapp
exclude = .git,node_modules,var/cache
[database]
transport = ssh
host = prod.example.com
user = deploy
db_host = localhost
db_name = myapp_prod
db_user = myapp
db_password = ${PROD_DB_PASSWORD}
[dumps]
transport = ssh
path = /home/backups/mysql
pattern = *.sql.gz
strategy = interactive
Secretsβ
Use ${VAR_NAME} syntax for sensitive values:
# Set secret
dvs secrets set PROD_DB_PASSWORD "mysecretpassword"
# Reference in config
db_password = ${PROD_DB_PASSWORD}