draft-classic icon indicating copy to clipboard operation
draft-classic copied to clipboard

draft up doesn't respect the environment flag for --auto-connect

Open mnanevski opened this issue 7 years ago • 0 comments

When doing draft --environment=some-env up --auto-connect, auto-connect connects to the instance in the default environment, not the one in some-env

Also, the command above specifies a message similar to the following: Inspect the logs with 'draft logs 01CSC7N10KQ1MZVMYHRQJQXBSV'

This is wrong as well because draft logs will search for the hash in the default environment, and it will report an error similar to the following Error: could not read logs for 01CSC7N10KQ1MZVMYHRQJQXBSV: open ~path-to-default-env-logs~/01CSC7N10KQ1MZVMYHRQJQXBSV: no such file or directory

The correct command would be: draft logs --environment=some-env 01CSC7N10KQ1MZVMYHRQJQXBSV

mnanevski avatar Oct 09 '18 11:10 mnanevski