deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Missing YAML docs

Open gglnx opened this issue 3 years ago • 2 comments

  • Deployer version: 7.0-rc4
  • Deployment OS: Mac OS

I'm using an deploy.yaml with runLocally to prebuild my assets:

tasks:
  deploy:assets:
    - runLocally: 'yarn install && yarn build'
    - upload:
        src: web/assets/
        dest: '{{release_path}}/web/assets'

This is the verbose output:

task deploy:assets
[hostname] /opt/homebrew/Cellar/[email protected]/7.4.27/bin/php /vendor/deployer/deployer/bin/dep worker --port 50806 --task deploy:assets --host hostname --decorated -vvv
[hostname] rsync '-azP' '-e' 'ssh '\''-A'\'' '\''-o'\'' '\''ControlMaster=auto'\'' '\''-o'\'' '\''ControlPersist=60'\'' '\''-o'\'' '\''ControlPath=/Users/dennis/.ssh/deploy@hostname'\''' 'web/assets/' 'deploy@hostname:/web/craft-cms/releases/19/web/assets'
[hostname] sending incremental file list
[hostname] rsync: [sender] change_dir "/web/assets" failed: No such file or directory (2)
[hostname] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1350) [sender=3.2.3]
[hostname]  error  in Importer.php on line 181:
[hostname] exit code 23 (Unknown error)

The uploads fails because web/assets wasn't generated by the runLocally build.

gglnx avatar Feb 21 '22 16:02 gglnx

Found the issue:

-    - runLocally: 'yarn install && yarn build'
+    - run_locally: 'yarn install && yarn build'

antonmedv avatar Mar 12 '22 16:03 antonmedv

Add docs to prevent misuse of YAML (runLocally instead of run_locally).

antonmedv avatar Mar 12 '22 16:03 antonmedv