-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
trellis logs development should adjust (omit) the ssh user automatically when using lima.
At the moment, the ssh user is hardcoded to vagrant when the environment is development:
https://github.com/roots/trellis-cli/blob/master/trellis/ssh.go#L10-L11
It should be possible to detect vagrant or lima automatically in most cases (by looking into the .trellis directory).
If both vagrant and lima configuration is present, it probably should assume vagrant (backwards compatible).
Possibly an additional command trellis vm logs would make sense for this edge case.
Additional context
Output when running trellis logs development:
Running command => ssh vagrant@example.test tail -f /srv/www/example/logs/*[^gz]?
vagrant@example.test: Permission denied (publickey).
Error running ssh: exit status 255
Command needed to get the logs:
ssh example.test "tail -f /srv/www/example/logs/*[^gz]?"
Or enter the vm using trellis vm shell and tail from inside.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request