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

Omego, webserver and config #39

Open
pwalczysko opened this issue Apr 25, 2014 · 3 comments
Open

Omego, webserver and config #39

pwalczysko opened this issue Apr 25, 2014 · 3 comments

Comments

@pwalczysko
Copy link
Member

Webserver
As discussed with @manics during testing of his PR, I have major problems with the development server starting every time as a default option in omego.
The solution would be --skipweb=TRUE, but it is hard to remember to pass this flag every time.
This is convoluted with the fact that I am using a development webserver. This is being passed in my config (see below about the config passing).
My, development webserver, starts every time I use omego without the --skipweb flag (=very often), and then it is not possible to stop it using bin/omero web stop - it has to be stopped "manually", killing the processes one by one -> very annoying.

Suggestions for Webserver:

  1. Was told by @manics , the production web server would really restart during omego upgrade, which makes me doubt about my original suggestion to make --skipweb=TRUE a default option.
  2. I would still opt for --skipweb=TRUE to be a default when omego install is run - with an appropriate output on the cmd line of course, saying "please sort yourself out, check all is fine with your server, check your config, then start the bin/omero web start from appropriate folder" - just a suggestion.

Config:
I find it often very confusing to figure out what config will be actually used in this or that case. This might be even dangerous, in case the --upgradedb flag is used (I might upgrade the db to a version I did not intend -> no downgrade -> problem.
There is a --cfg ./config.xml option, which works, but then you have to take care of the config.xml file beforehand - not very nice.

Suggestions for config:

  1. make it very easy to check your config using omego (remember that when using omego, you are in a parent directory to the one where your bin/omero… commands can be executed from - not very straightforward to jump from one dir to another just to check your present config.
  2. make it very clear what config will be used when the omego commands are going ahead with installs, upgrades etc. - maybe even a compulsory question at the start, saying - for dbupgrade this and that config will be used, for the init this and that config, for the upgraded server this and that config - yes, you do not have the exact config variables at hand before the command is executed, but you can inform the user FROM WHERE will the configs be taken from. A simple question then follows: Are you happy to proceed ? y n. I am sure an admin would rather like to stop and ponder for 1 min before blowing up the DB of the whole institute using hidden omego configs.
@pwalczysko
Copy link
Member Author

/cc @joshmoore @sbesson @kennethgillen

@joshmoore
Copy link
Member

Regarding the web server, perhaps if we have skipweb==true if development is chosen?

@pwalczysko
Copy link
Member Author

@joshmoore Agree, this would be optimal.

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

No branches or pull requests

2 participants