Skip to content

Commit

Permalink
adição dos comandos start, stop, status buid no Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiscleverson committed Mar 29, 2024
1 parent 3e3d0ab commit a6dfdf7
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
deploy:
sudo mv ~/http-server.service /etc/systemd/system/ \
&& sudo systemctl enable http-server \
&& sudo systemctl restart http-server \
start-docker:
docker compose up -d

start-service:
sudo systemctl start app

stop:
docker compose down

status:
sudo systemctl status app

build:
docker compose up --build &&\
docker compose down

deploy:
sudo cp ./app.service /etc/systemd/system/ && \
sudo systemctl enable app && \
sudo systemctl restart app

0 comments on commit a6dfdf7

Please sign in to comment.