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

@ -18,6 +18,9 @@ else
deno deno
fi fi
# Clone website repo # Create fs tree is missing
mkdir -p /srv/portfolio 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 git clone -b main --depth 1 https://git.cohabit.fr/cohabit/portfolio_server.git /srv/portfolio