roots / trellis-cli

A CLI to manage Trellis projects
https://roots.io/trellis/
MIT License
165 stars 25 forks source link

Re-add `project_root` support in `alias` command #447

Closed swalkinshaw closed 1 month ago

swalkinshaw commented 1 month ago

Fixes #446

@codepuncher @andronocean this looks correct?

With project_root set:

"@development":
  ssh: "example.test"
  path: "/www/examplecom_123/public/current/web/wp"
"@production":
  path: "/www/examplecom_123/public/current/web/wp"
"@staging":
  path: "/www/examplecom_123/public/current/web/wp"

Without project_root set:

"@development":
  ssh: "example.test"
  path: "/srv/www/example.com/current/web/wp"
"@production":
  path: "/srv/www/example.com/current/web/wp"
"@staging":
  path: "/srv/www/example.com/current/web/wp"
codepuncher commented 1 month ago

For some reason, this is removing the ssh key from aliases on any project I try this on! path seems fine though

swalkinshaw commented 1 month ago

Oops, restored that

codepuncher commented 1 month ago

Perfect! Works fine for me. Thanks!