Add installe, no automation yet
This commit is contained in:
11
helper/install.sh
Executable file
11
helper/install.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
TARGET_DIR="$HOME/.local/poo-recorder"
|
||||
|
||||
mkdir -p $TARGET_DIR
|
||||
|
||||
cp ../main.py ../poo.py ../requirements.txt $TARGET_DIR
|
||||
|
||||
python -m venv "$TARGET_DIR/venv"
|
||||
|
||||
$TARGET_DIR/venv/bin/pip install -r $TARGET_DIR/requirements.txt
|
||||
15
helper/poo_recorder.conf
Normal file
15
helper/poo_recorder.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
[program:poo_recorder_backend]
|
||||
environment=PYTHONUNBUFFERED=1
|
||||
command=
|
||||
directory=
|
||||
user=
|
||||
group=
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=1
|
||||
startretries=100
|
||||
stopwaitsecs=30
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
||||
stdout_logfile_maxbytes=5MB
|
||||
stdout_logfile_backups=5
|
||||
Reference in New Issue
Block a user