-
Notifications
You must be signed in to change notification settings - Fork 188
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
NPE when passing config file via PROXY_CONFIG in single binary mode #139
Comments
This func is not called in single-binary mode: https://github.com/owncloud/ocis-proxy/blob/2aba428eb1ef177894fffc9477ad6a091d2cf676/pkg/command/root.go#L16 @refs Shouldn't this logic live inside the server command? |
IljaN
added a commit
to owncloud/ocis-proxy
that referenced
this issue
Mar 12, 2020
This is needed because he before hook which initializes the config is not executed correctly in the root cmd if the service is called from single-binary. This aligns the behaviour to match other commands
IljaN
added a commit
to owncloud/ocis-proxy
that referenced
this issue
Mar 12, 2020
This is needed because he before hook which initializes the config is not executed correctly in the root cmd if the service is called from single-binary. This aligns the behaviour to match other commands. With this commit the --config-file argument needs to be passed to the server sub-command.
Fix here: owncloud/ocis-proxy#12
|
IljaN
added a commit
to owncloud/ocis-proxy
that referenced
this issue
Mar 12, 2020
This is needed because he before hook which initializes the config is not executed correctly in the root cmd if the service is called from single-binary. This aligns the behaviour to match other commands. With this commit the --config-file argument needs to be passed to the server sub-command.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears that the config can't be loaded:
The text was updated successfully, but these errors were encountered: