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

Omero home web settings 11373 #1485

Closed

Conversation

will-moore
Copy link
Member

This removes the use of os.environ.get('OMERO_HOME') from omeroweb/settings.py. This means you can run OMERO web in production OR development locations without setting OMERO_HOME.

To test (need dist/lib/python on your $PYTHONPATH):

# run from production
$ bin/omero web start

Check that web is working OK, E.g. logging & static files etc

# run from development (remove dist libs)
$ rm -rf dist/lib/python/omeroweb
$ cd components/tools/OmeroWeb/omeroweb
$ python manage.py runserver

Again, check that web is working OK, E.g. logging & static files etc

@chris-allan
Copy link
Member

The reason OMERO_HOME was used in the first place was actually to ensure that it behaved like other bin/omero commands. The intention was definitely not to further muddy the waters as to the usage of OMERO_HOME, in fact much the opposite. The changes in this pull request have many implications including potential issues with reading settings from etc/grid/config.xml, modification of log file directories, etc. It also breaks other directory structures of which we use extensively at @glencoesoftware.

I would think the simple solution to this problem, reading the description on ticket 11373 is to change the documentation back to OMERO_HOME. If we want to make this easier, fine but not on dev_4_4.

/cc @joshmoore, @cneves

@atarkowska
Copy link
Member

There is still one place where OMERO_HOME is used see https://github.com/will-moore/openmicroscopy/blob/OMERO_HOME_web_settings_11373/components/tools/OmeroWeb/omeroweb/webstart/views.py#L54 as it rise an error 'Settings' object has no attribute 'OMERO_HOME'. Is always worth to search for phrase across the entire codebase.

@will-moore
Copy link
Member Author

@chris-allan @joshmoore @aleksandra-tarkowska OK, so maybe we just tell users who want to run web from a non-standard location (E.g. from components/tools/OmeroWeb/omeroweb/) to set $OMERO_HOME. This is a small number of people, and will generally be on non-production servers anyway.

@will-moore will-moore closed this Sep 16, 2013
@will-moore will-moore deleted the OMERO_HOME_web_settings_11373 branch September 16, 2013 10:08
@chris-allan
Copy link
Member

That makes sense @will-moore. If you want to add something about absolutely not running production servers this way that's totally understandable.

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

Successfully merging this pull request may close these issues.

None yet

3 participants