Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroFnseca committed Aug 29, 2023
1 parent d0e79ba commit 4b9fdce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/bin/bash

# Cria a pasta bin se não existir
mkdir -p bin

# Compila o código da pasta src usando gcc e libmicrohttpd, e coloca o executável na pasta bin
gcc -o bin/main src/main.c -lmicrohttpd

# Verifica se a compilação foi bem-sucedida
if [ $? -eq 0 ]; then
echo "Compilação bem-sucedida."
else
Expand Down
4 changes: 0 additions & 4 deletions docker_run.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/bin/bash

# Nome do contêiner
CONTAINER_NAME="rest-api-c"

# Remove o contêiner existente com o mesmo nome
docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1

# Constrói a imagem do Docker a partir do Dockerfile
docker build -t rest-api-c .

# Executa o contêiner, expondo a porta 8080 e atribuindo o nome "rest-api-c"
docker run -d -p 8080:80 --name "$CONTAINER_NAME" rest-api-c

0 comments on commit 4b9fdce

Please sign in to comment.