-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adição dos comandos start, stop, status buid no Makefile
- Loading branch information
1 parent
3e3d0ab
commit a6dfdf7
Showing
1 changed file
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |