mkdir code; \
cd code; \
touch /var/tmp/result.txt; \
git clone https://github.com/jintaxi/fishmart.ru.git ; \
cd fishmart.ru; \
python3.9 -m venv fishmart.ru; \
source fishmart.ru/bin/activate; \
pip install -U pip; \
pip install -r requirements.txt
-
Find password for new email and insert it into .zshrc (or .bashrc) at the end of the file in variable
EMAIL_PASSWD
-
vim ~/.zshrc
orvim ~/.bashrc
It will look like export EMAIL_PASSWD="1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH"
- After this reload .zshrc
source ~/.zshrc
or
source ~/.bashrc
Open crontab -e
Then paste this at the end of the file
*/30 * * * * /home/pi/code/fishmart.ru/fishmart.ru/bin/python /home/pi/code/fishmart.ru/main.py