Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 661 Bytes

File metadata and controls

39 lines (28 loc) · 661 Bytes

snorkel.deploy

this repository is an example deployment of snorkel.lite that can be cloned and used to run a snorkel instance with custom configuration.

installation

# make a virtualenv called 'dev'
virtualenv -p python2 dev
source dev/bin/activate
# install snorkel-lite
pip install snorkel-lite
# run the web server
PORT=2333 ENV=local.py python2 app.py

flask commands

# add a regular user
flask add-user <name>

# setup superuser
flask add-superuser <name>

# get auth token
flask get-user-token <name>

setting up local config

# edit config/local.py
# edit app.py