From 6382900b32857b904c348f94f3518e351b1a1047 Mon Sep 17 00:00:00 2001 From: artie Date: Sat, 18 Jan 2025 02:50:19 +0100 Subject: [PATCH] venv fixes --- Makefile | 6 +++--- README.md | 2 +- ecosystem.config.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 03fb784..b87ff6a 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index ac6d99c..1f562de 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,6 @@ pm2 start ### Launching prod (manual) ``` -. env/bin/activate +. .venv/bin/activate ENV=production python3 -m artemis.bot ``` diff --git a/ecosystem.config.js b/ecosystem.config.js index 3eaf294..42383f8 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,7 +2,7 @@ module.exports = { apps: [ { name: "artemis", - script: "./env/bin/python", + script: "./.venv/bin/python", args: "-m artemis.bot", time: true, env: {