Skip to content

Instantly share code, notes, and snippets.

@dpwrussell
Created November 10, 2013 15:21
Show Gist options
  • Save dpwrussell/7399423 to your computer and use it in GitHub Desktop.
Save dpwrussell/7399423 to your computer and use it in GitHub Desktop.
omero-web-dev scripts. To setup and run django dev server in the OMERO environment.
#!/bin/bash
export OMERO_PREFIX=~/Checkouts/openmicroscopy/dist # Example server build path
# Make sure the Django code etc can be imported
#export PYTHONPATH=$OMERO_PREFIX/lib/python/
cd $OMERO_PREFIX
# need to remove the built omeroweb code so it doesn't get imported
rm -rf lib/python/omeroweb/
cd ../components/tools/OmeroWeb/omeroweb
export OMERO_HOME=$OMERO_PREFIX
python manage.py runserver 0.0.0.0:8000
#!/bin/bash
export OMERO_PREFIX=~/Checkout/openmicroscopy/dist # Example server build path
# Make sure the Django code etc can be imported
export PYTHONPATH=$OMERO_PREFIX/lib/python/
cd $OMERO_PREFIX
# need to remove the built omeroweb code so it doesn't get imported
rm -rf lib/python/omeroweb/
cd ../components/tools/OmeroWeb/omeroweb
export OMERO_HOME=$OMERO_PREFIX
python manage.py shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment