From d1fe29652d969361e812520a407a10f8e6600d69 Mon Sep 17 00:00:00 2001 From: Ajan Lal Shrestha Date: Tue, 24 Dec 2019 20:25:40 +0545 Subject: [PATCH] feat(automation): Add scripts to start, stop, build and view client logs --- makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/makefile b/makefile index 7c5ce70..3a98089 100644 --- a/makefile +++ b/makefile @@ -17,6 +17,23 @@ stop-api: view-api-logs: docker logs -f api +# Client +dockerize-client: + docker build -t ajreddevil/client-job-board client/ + +start-client: + docker run --name client \ + -p 3000:3000 \ + --restart unless-stopped \ + -d ajreddevil/client-job-board + +stop-client: + docker stop client + docker rm client + +view-client-logs: + docker logs -f client + # worker dockerize-worker: docker build -t ajreddevil/worker-job-board worker/