mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 07:31:31 +00:00
Update readme
This commit is contained in:
parent
d3db21f26e
commit
c1f867f97c
15
README.md
15
README.md
@ -21,16 +21,19 @@ Run with `docker run -p 4242:4242 <id>` to bind the container's port to localhos
|
|||||||
|
|
||||||
## Running locally
|
## Running locally
|
||||||
|
|
||||||
Open two terminals in the project root.
|
Create a new virtualenv, preferably with [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io). Install the
|
||||||
|
dependencies with `pip install tornado pyzmq transitions`. If using virtualenvwrapper, issue `add2virtualenv lib` from
|
||||||
|
the project root to add the local libraries to the virtualenv's PYTHONPATH.
|
||||||
|
|
||||||
Issue
|
To start the project issue
|
||||||
```
|
```
|
||||||
cd src/app/
|
cd src/app/
|
||||||
PYTHONPATH="../../lib/" python app.py
|
python app.py
|
||||||
```
|
```
|
||||||
in one, and
|
in one terminal, and
|
||||||
```
|
```
|
||||||
cd src/components/
|
cd src/components/
|
||||||
PYTHONPATH="../../lib/" python event_handler_main.py
|
python event_handler_main.py
|
||||||
```
|
```
|
||||||
in the other.
|
in another. Prepend the python commands with `PYTHONPATH="../../lib/"` if the folder weren't added to the PYTHONPATH
|
||||||
|
permanently.
|
||||||
|
Loading…
Reference in New Issue
Block a user