Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 2.15 KB

README.md

File metadata and controls

84 lines (59 loc) · 2.15 KB

STORM Toehold App

To run locally, download the folder and follow instructions below. This virtual environment and packages have only been tested on a Mac running Mojave, so no guarantees if you have another system or OS.

<<<<<<< Updated upstream

1. Create virtual environment

Option #1a (conda)

Make a virtual environment with conda and python 3.6. Navigate to inside the app folder before pip installing.

conda create -n stormapp python=3.6 anaconda
conda activate stormapp
pip3 install -r requirements.txt
Option #1b (virtualenv)

Make a Python 3 virtual environment with virtualenv and install requirements.

python3 -m venv stormapp
source stormapp/bin/activate
pip3 install -r requirements.txt

2. Run the app locally

In one tab, start a redis server on the default port 6379.

redis-server

In a second tab (also in the virtual environment), use flask to run the app.

python3 -m flask run

You can now view the app running on http://127.0.0.1:5000/.

When done with the app, close the localhost window and deactivate the virtual environment with conda deactivate (if using conda) or deactivate (if using virtualenv).


Troubleshooting

If the app is failing to move your job from "queued" to "started", it might help to debug your redis queue (within the virtual environment).

rqworker --url redis://localhost:6379 default
=======
1. Make a virtual environment with conda and python 3.6. Navigate to inside the app folder before pip installing.
conda create -n stormapp python=3.6 anaconda
conda activate stormapp
pip3 install -r requirements.txt

2. Use flask to run the app. The app will be running on http://127.0.0.1:5000/.
python3 -m flask run

3. If the app is failing to move your job from "queued" to "started", it might help to debug your redis queue (within the virtual environment).
rqworker --url redis://localhost:6379 default

4. When done with the app, close the localhost window and deactivate the virtual environment.
conda deactivate

Stashed changes