Added activating virtualenv
This commit is contained in:
parent
5f6deb7b50
commit
e201da9a4b
10
README.md
10
README.md
@ -27,10 +27,16 @@ just send an exit message into the watchdog file: `echo exit > watchdog.fifo`
|
||||
There are two ways to do it
|
||||
|
||||
### In foreground
|
||||
`$ python main.py`
|
||||
```
|
||||
$ source venv/bin/activate
|
||||
$ python main.py
|
||||
```
|
||||
|
||||
### In background
|
||||
`$ nohup python main.py > log/hc_spider.log 2> log/hc_spider.err <&- &`
|
||||
```
|
||||
$ source venv/bin/activate
|
||||
$ nohup python main.py > log/hc_spider.log 2> log/hc_spider.err <&- &
|
||||
```
|
||||
|
||||
In case you running the tool in background you can stop the execution with `$ echo exit > <watchdog_file>`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user