Added activating virtualenv

This commit is contained in:
Szirtesi,Tamás Gábor 2023-10-09 14:29:17 +02:00
parent 5f6deb7b50
commit e201da9a4b

View File

@ -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>`