add make docker-run
This commit is contained in:
parent
3790c248a6
commit
dc29bf9204
3
Makefile
3
Makefile
@ -58,6 +58,9 @@ docker-push-prod:
|
||||
docker tag $(IMAGE) $(IMAGE_PROD)
|
||||
docker push $(IMAGE_PROD)
|
||||
|
||||
docker-run:
|
||||
docker run -it --rm $(IMAGE)
|
||||
|
||||
web: FORCE
|
||||
cd web && npm run build
|
||||
mkdir -p build/web
|
||||
|
||||
@ -40,6 +40,7 @@ def main():
|
||||
procs = [nginx, gunicorn]
|
||||
atexit.register(lambda: [x.kill() for x in procs])
|
||||
|
||||
print("Started nginx and gunicorn, entering infinite loop")
|
||||
while True:
|
||||
for x in procs:
|
||||
if x.poll() != None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user