Description
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
- parse-server version (Be specific! Don't say 'latest'.) : 2.8.2 and master branch
- Operating System: Doesn't matter
- Hardware: Doesn't matter
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Doesn't matter
-
Database
- MongoDB version: Doesn't matter
- Storage engine: Doesn't matter
- Hardware: Doesn't matter
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Doesn't matter
Logs/Trace
Using env var
appId: APPLICATION_ID masterKey: ***REDACTED*** masterKeyIps: [] logsFolder: ./logs databaseURI: mongodb://localhost/test userSensitiveFields: ["email"] enableAnonymousUsers: true allowClientClassCreation: true maxUploadSize: 20mb customPages: {} sessionLength: 31536000 expireInactiveSessions: true revokeSessionOnPasswordReset: true schemaCacheTTL: 5000 cacheTTL: 5000 cacheMaxSize: 10000 objectIdSize: 10 port: 1337 host: 0.0.0.0 mountPath: /parse startLiveQueryServer: true scheduledPush: false collectionPrefix: verifyUserEmails: false preventLoginWithUnverifiedEmail: false enableSingleSchemaCache: false jsonLogs: false verbose: false level: undefined serverURL: http://localhost:1337/parse[29903] parse-server running on http://localhost:1337/parse
Using config file
appId: APPLICATION_ID masterKey: ***REDACTED*** masterKeyIps: [] logsFolder: ./logs databaseURI: mongodb://localhost/test userSensitiveFields: ["email"] enableAnonymousUsers: true allowClientClassCreation: true maxUploadSize: 20mb customPages: {} liveQuery: {"classNames":["GameScore"]} sessionLength: 31536000 expireInactiveSessions: true revokeSessionOnPasswordReset: true schemaCacheTTL: 5000 cacheTTL: 5000 cacheMaxSize: 10000 objectIdSize: 10 port: 1337 host: 0.0.0.0 mountPath: /parse startLiveQueryServer: true scheduledPush: false collectionPrefix: verifyUserEmails: false preventLoginWithUnverifiedEmail: false enableSingleSchemaCache: false jsonLogs: false verbose: false level: undefined serverURL: http://localhost:1337/parse[29903] parse-server running on http://localhost:1337/parse