File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.idea /
22.pytest_cache /
33__pycache__ /
4-
5- bin /
6- share /
7- Scripts /
8- [Ii ]nclude /
9- [Ll ]ib /
10- pyvenv.cfg
4+ venv /
115
126app /config.py
137log.txt
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33echo " Generating a virtual environment..."
4- python3 -m venv .
5- . bin/activate
4+ python3 -m venv venv
5+ . venv/ bin/activate
66echo " Installing dependencies..."
77echo
88pip install setuptools wheel --upgrade
99pip install -r requirements.txt
1010echo
1111
1212echo " Creating a configuration file..."
13- cp examples/config.py app/config.py
14- sudo chgrp www-data app/config.py
13+ cp examples/config.py app/
14+ sudo chgrp www-data app/config.py || echo " Group 'www-data' not found. Change the group of 'app/config' file manually! "
1515chmod o-r app/config.py
1616echo
1717
1818echo " Done. Don't forget to replace fake values in 'app/config.py' with your actual ones."
19- echo " Use the '. bin/activate' command to enable the virtual environment. Inside, type 'deactivate' to disable it."
19+ echo " Use the '. venv/ bin/activate' command to enable the virtual environment. Inside, type 'deactivate' to disable it."
2020echo " The 'start.sh' script is a shortcut to enter the virtual environment and run the bot."
2121echo
2222echo " If you want to run tests, execute the following command in addition:"
23- echo " . bin/activate && pip install -r requirements-dev.txt && deactivate"
23+ echo " . venv/ bin/activate && pip install -r requirements-dev.txt && deactivate"
2424echo
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- . bin/activate
3+ . venv/ bin/activate
44export PYTHONPATH=app
55exec app/bot.py
You can’t perform that action at this time.
0 commit comments