-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LiveQuery options cannot be set via env variables #4887
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
Comments
You can use the PARSE_SERVER_LIVE_QUERY environment variable which expects a JSON serialized object. Did you expect to use the same environment variables as the standalone live query server? This could make sense |
I didn't realise those are for the standalone server and the usage of PARSE_SERVER_LIVE_QUERY I'll send in a PR for the documentation, tho using the same environment variables sounds good too. Any way I can help? |
That would be very nice to use the same environment variables and treat the ‘start live query server’ the same way both ways (stand-alone and with server) |
you can check my Parse Server Live Query repo to see how to pass LiveQuery env variable to docker run command or docker-compose. |
The command to set env variables must begin with --env PARSE_SERVER_START_LIVE_QUERY_SERVER=1 --env PARSE_SERVER_LIVEQUERY_CLASSNAMES=GameScore parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test |
Issue Description
LiveQuery options cannot be set via env variables, although it is listed in the definition file, the parse-server cli it not picking it up.
In https://github.com/parse-community/parse-server/blob/master/src/cli/definitions/parse-server.js, it's only reading ParseServerOptions.
Steps to reproduce
Run
PARSE_SERVER_START_LIVE_QUERY_SERVER=1 PARSE_SERVER_LIVEQUERY_CLASSNAMES=GameScore parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test
Expected Results
The classNames are listed among the other options when starting parse server initially.
Actual Outcome
The classNames are NOT listed among the other options when starting parse server initially.
Environment Setup
Server
Database
Logs/Trace
Using env var
Using config file
The text was updated successfully, but these errors were encountered: