Open DifferentialOrange opened 5 months ago
Why do we need to chdir to the application directory and create one more env there? Why is this a popular scenario?
Why do we need to chdir to the application directory and create one more env there?
I chdir to application directory to develop my application. I create env per application since this is the way I usually work with local environment: Lua rocks, Python venv, git. If it is forbidden, let's forbid to work like this in documentation and, if possible, with tt init
call. As far as I remember env discussions, it was planned that env inside the application is fine.
Why is this a popular scenario?
Do we have any statistics or independent research on non-tt developers which scenarios are popular? I think we're not.
tt init --help
says
Create tt environment config for application in current directory
and for me it sounds like it encourages to create per-application env, not forbids it.
let's forbid to work like this in documentation
Cannot be forbidden due to cartridge-cli
compatibility.
Do we have any statistics or independent research on non-tt developers which scenarios are popular?
There are some popular scenarios
Please ask the author of the comment above.
Please ask the author of the comment above.
Yeah, that's fair. Do we have a proper step-by-step guide on how to work with tt-compatible application (full cycle, not separate commands)? It seems that my understanding of the approach is not the same as you have.
By popular scenarios, I have meant "re-pack application that has been packed some time ago" and "pack application if I work with credentials". If my issues do not directly tied to these but to some other things -- let's at least fixate it here.
Now
tt pack
ignores some files (for example,.git
and.gitignore
) on artifact packing by default. There are some popular scenarios that seems to better be covered by default.Command packs previous artifact
Rebuild the artifact after some changes.
Rebuild the artifact after more changes.
And so on.
Command packs credentials file