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

Improve environment variable usage documentation #273

Open
aaro-n opened this issue Feb 4, 2024 · 1 comment
Open

Improve environment variable usage documentation #273

aaro-n opened this issue Feb 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aaro-n
Copy link

aaro-n commented Feb 4, 2024

Describe the error

I have completely read the Chinese installation document of Answer. I need to add a more complete description of the AUTO_INSTALL setting in environment variables. If there is no docker volumes mapping, when using environment variables for Answer installation, delete the Answer to run the container. And run the Answer container again, Answer will populate the database again, but the database already has content, Answer will prompt an error (the config.yaml file is missing, and the database uses postgresql).

Reappear

Set AUTO_INSTALL to true according to the document, and the installation will be automatically successful. The data has been written to the database. At this time, Answer can be accessed normally. After deleting the running container and using the same parameters, Answer will write the configuration to the database again. information, but the same configuration information already exists in postgresql.

Expected behavior

AnswerYou can use environment variables for parameter configuration and run, no configuration file is required.

@aaro-n aaro-n added the bug Something isn't working label Feb 4, 2024
@LinkinStars
Copy link
Member

@aaro-n First of all, AUTO_INSTALL is only used for the first installation. After the installation is complete, you should not set this environment variable to true anymore. About If there is no docker volumes mapping. If you are just using Answer this is not fitting because not only the configuration file, but also the cache and uploaded images and other information are put here, so it is better to need to have the volumes. Of course, about your point about not using configuration files at all and using only environment variables, this is something that we will consider. Thanks for the feedback.

@fenbox fenbox transferred this issue from apache/answer Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants