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

web config update is not properly reflected after the ocis start #2944

Closed
kiranparajuli589 opened this issue Jan 11, 2022 · 2 comments
Closed
Labels

Comments

@kiranparajuli589
Copy link
Contributor

kiranparajuli589 commented Jan 11, 2022

Describe the bug

ocis use the env WEB_UI_CONFIG to look for and update the web ui config. If we start the server and then make some change in the config file, the changes are not reflected on the webUI until the restart.

Steps to reproduce

Steps to reproduce the behavior:

  1. start ocis server with homeFolder options not set in the WEB_UI_CONFIG file.
  2. update the options homeFolder to "/0"
  3. login as einstein

Expected behavior

  • breadcrumb for folder "/0" should be displayed

Actual behavior

Setup

Please describe how you started the server and provide a list of relevant environment variables.

latest ocis master from github

#!/bin/bash
export OCIS_URL="https://localhost:9200"
export PROXY_ENABLE_BASIC_AUTH=True
export WEB_UI_CONFIG="/$HOME/www/useful/ocis-config/web-config.json"
export WEB_ASSET_PATH="$HOME/www/web/dist/"
export IDP_IDENTIFIER_REGISTRATION_CONF="/$HOME/www/useful/ocis-config/idp.yml"
export OCIS_LOG_LEVEL="error"
export OCIS_INSECURE="true"

if [ "$DRIVER" = 'owncloud' ]
then
	export STORAGE_HOME_DRIVER="owncloud"
	export STORAGE_USERS_DRIVER="owncloud"
else
	export STORAGE_HOME_DRIVER="ocis"
	export STORAGE_USERS_DRIVER="ocis"
fi

# assumes ocis repo cloned at"$HOME"/go/src/github.com/owncloud/ocis
"$HOME"/go/src/github.com/owncloud/ocis/ocis/bin/ocis server

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants