Compare commits

..

No commits in common. "6382900b32857b904c348f94f3518e351b1a1047" and "0a3a18dbf3f779602eb7c0ddd1faa838e1ec4e5b" have entirely different histories.

4 changed files with 7 additions and 7 deletions

4
.gitignore vendored
View File

@ -1,6 +1,6 @@
__pycache__/
temp/
.venv/
env/
config.prod.toml
config.dev.toml
status.json
status.json

View File

@ -1,4 +1,4 @@
ENV=.venv
ENV=env
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 .venv
python3 -m venv env
install:
$(PIP) install -Ur requirements.txt
@ -18,4 +18,4 @@ watch:
pnpx nodemon -e py,toml -x $(PYTHON) -m artemis.bot
clean:
rm -rf .venv
rm -rf env

View File

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

View File

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