fix(portfolio_server): remove old files before cloning sources

This commit is contained in:
Julien Oculi 2024-07-11 12:44:33 +02:00
parent 142064f9fc
commit 67f80dca18

View file

@ -17,7 +17,10 @@ else
--comment "Deno js engine" \
deno
fi
# Clone website repo
# Create fs tree is missing
mkdir -p /srv/portfolio
# Remove old files if exists
rm -rf /srv/portfolio/*
# Clone website repo
git clone -b main --depth 1 https://git.cohabit.fr/cohabit/portfolio_server.git /srv/portfolio