venv fixes

This commit is contained in:
artie 2025-01-18 02:50:19 +01:00
parent 0f57dec759
commit 6382900b32
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
ENV=env
ENV=.venv
BIN=$(ENV)/bin
PYTHON=$(BIN)/python
PIP=$(BIN)/pip
@ -6,7 +6,7 @@ PIP=$(BIN)/pip
.PHONY: venv install dev watch clean
venv:
python3 -m venv env
python3 -m venv .venv
install:
$(PIP) install -Ur requirements.txt
@ -18,4 +18,4 @@ watch:
pnpx nodemon -e py,toml -x $(PYTHON) -m artemis.bot
clean:
rm -rf env
rm -rf .venv

View File

@ -25,6 +25,6 @@ pm2 start
### Launching prod (manual)
```
. env/bin/activate
. .venv/bin/activate
ENV=production python3 -m artemis.bot
```

View File

@ -2,7 +2,7 @@ module.exports = {
apps: [
{
name: "artemis",
script: "./env/bin/python",
script: "./.venv/bin/python",
args: "-m artemis.bot",
time: true,
env: {