mirror of
https://github.com/artiemis/artemis.git
synced 2026-02-14 08:31:55 +00:00
Compare commits
2 Commits
0a3a18dbf3
...
6382900b32
| Author | SHA1 | Date | |
|---|---|---|---|
| 6382900b32 | |||
| 0f57dec759 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
temp/
|
temp/
|
||||||
env/
|
.venv/
|
||||||
config.prod.toml
|
config.prod.toml
|
||||||
config.dev.toml
|
config.dev.toml
|
||||||
status.json
|
status.json
|
||||||
|
|||||||
6
Makefile
6
Makefile
@ -1,4 +1,4 @@
|
|||||||
ENV=env
|
ENV=.venv
|
||||||
BIN=$(ENV)/bin
|
BIN=$(ENV)/bin
|
||||||
PYTHON=$(BIN)/python
|
PYTHON=$(BIN)/python
|
||||||
PIP=$(BIN)/pip
|
PIP=$(BIN)/pip
|
||||||
@ -6,7 +6,7 @@ PIP=$(BIN)/pip
|
|||||||
.PHONY: venv install dev watch clean
|
.PHONY: venv install dev watch clean
|
||||||
|
|
||||||
venv:
|
venv:
|
||||||
python3 -m venv env
|
python3 -m venv .venv
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(PIP) install -Ur requirements.txt
|
$(PIP) install -Ur requirements.txt
|
||||||
@ -18,4 +18,4 @@ watch:
|
|||||||
pnpx nodemon -e py,toml -x $(PYTHON) -m artemis.bot
|
pnpx nodemon -e py,toml -x $(PYTHON) -m artemis.bot
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf env
|
rm -rf .venv
|
||||||
|
|||||||
@ -25,6 +25,6 @@ pm2 start
|
|||||||
|
|
||||||
### Launching prod (manual)
|
### Launching prod (manual)
|
||||||
```
|
```
|
||||||
. env/bin/activate
|
. .venv/bin/activate
|
||||||
ENV=production python3 -m artemis.bot
|
ENV=production python3 -m artemis.bot
|
||||||
```
|
```
|
||||||
|
|||||||
@ -2,7 +2,7 @@ module.exports = {
|
|||||||
apps: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: "artemis",
|
name: "artemis",
|
||||||
script: "./env/bin/python",
|
script: "./.venv/bin/python",
|
||||||
args: "-m artemis.bot",
|
args: "-m artemis.bot",
|
||||||
time: true,
|
time: true,
|
||||||
env: {
|
env: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user