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

Setup Script: Backup Feature for the .env file. #3481

Open
palisadoes opened this issue Jan 29, 2025 · 4 comments
Open

Setup Script: Backup Feature for the .env file. #3481

palisadoes opened this issue Jan 29, 2025 · 4 comments

Comments

@palisadoes
Copy link
Contributor

Is your feature request related to a problem? Please describe.

If someone makes a configuration mistake with the configuration script there isn't an easy way to recover.

Describe the solution you'd like

  1. At the very end of the setup script. Prompt to backup the old version of the file.
  2. If the user decides to do so:
    1. Save the old version in a .backup/ directory
    2. Name the file .env.EPOCHTIMESTAMP where EPOCHTIMESTAMP is the UTC epoch timestamp in seconds
    3. Let the user know the name of the file that it is saved as
  3. Tests need to be written for this and they must be valid.

Describe alternatives you've considered

  • None

Approach to be followed (optional)

  • See above

Additional context

  • None

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@sancheet230
Copy link

@palisadoes assign (I can work on this)

@rishyym0927
Copy link

@palisadoes I would like to work on this issue

@Cioppolo14
Copy link
Contributor

@rishyym0927 If the issue has already been assigned, please don't ask to be assigned. We want everyone to get a chance.

@rishyym0927
Copy link

Ok sure !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants