Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to temporarily remove files before checkout and copy them back once branch is checked out #2

Open
matfire opened this issue Jul 17, 2024 · 0 comments
Milestone

Comments

@matfire
Copy link
Owner

matfire commented Jul 17, 2024

As of v0.6.0, any file that is not part of the tree (like a .env file) is lost after a checkout. The temporary solution is just to have it stored elsewhere and add a command to the list that copies it over (since the commands are executed after the checkout, the file is available when the app starts back up).

I should probably have a nicer solution: a list of files to be configured with the application:

[apps.test]
# all the other options
preservedFiles=['.env']

This would allow the program to store them in a temporary folder, checkout the newly released tag and copy them back over once all was done.

@matfire matfire added this to the 1.0.0 milestone Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant