docker too annoying, switched to nohup

This commit is contained in:
ION606
2025-02-16 16:38:34 -05:00
parent 70d41ae42d
commit 97f5618579
4 changed files with 18 additions and 12 deletions
+11 -12
View File
@@ -1,18 +1,17 @@
all: build run
build:
docker build -t static-sites .
all: run
run:
docker run -d -p 5121:5121 \
-v $(PWD)/templates:/app/templates \
-v $(PWD)/static:/app/static \
-v $(PWD)/sites:/app/sites \
-v $(PWD)/db.sqlite:/app/db.sqlite \
--name static_sites static-sites
nohup .venv/bin/python app.py > output.log 2>&1 & echo $! > app.pid
stop:
docker stop static_sites || true
kill -9 $(cat app.pid) || true
rm -f app.pid
restart: stop run
logs:
tail -f output.log
clean: stop
docker rm static_sites || true
rm -f output.log
+1
View File
@@ -0,0 +1 @@
+6
View File
@@ -0,0 +1,6 @@
Traceback (most recent call last):
File "/home/ion606/misc-code/static-site-hosting/app.py", line 1, in <module>
from flask import (
...<9 lines>...
)
ModuleNotFoundError: No module named 'flask'
View File