-
Notifications
You must be signed in to change notification settings - Fork 4
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
Replace hard coded db-path with value at MEILI_DB_PATH passed by user. #88
base: main
Are you sure you want to change the base?
Conversation
…ATH environment variable value rather than a hardcoded location for the meilisearch data file so user's setting is not overwritten on first ssh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your contribution!
I asked a question I think it would be very important to be handled before merging!
@@ -40,7 +40,8 @@ After=systemd-user-sessions.service | |||
Type=simple | |||
Environment="MEILI_SERVER_PROVIDER=$MEILISEARCH_SERVER_PROVIDER" | |||
Environment="MEILI_DUMP_DIR=$MEILI_DUMP_DIR" | |||
ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env $MEILISEARCH_ENVIRONMENT --dump-dir $MEILI_DUMP_DIR | |||
Environment="MEILI_DB_PATH=$MEILI_DB_PATH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think to prevent breaking for existing users it would be needed to set a default value here, no?:
cloud-providers/scripts/first-login/000-set-meili-env.sh
Lines 17 to 24 in 26ad0b4
MEILISEARCH_ENVIRONMENT='development' | |
MEILISEARCH_SERVER_PROVIDER=provider_name | |
USE_API_KEY='false' | |
MEILISEARCH_MASTER_KEY='' | |
MEILI_DUMP_DIR='/var/opt/meilisearch/dumps' | |
DOMAIN_NAME='' | |
USE_SSL='false' | |
USE_CERTBOT='false' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. My bad. Should I add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :)
Pull Request
Related issue
Fixes #87
What does this PR do?
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!