fix(portfolio_server): remove old files before cloning sources
This commit is contained in:
parent
142064f9fc
commit
67f80dca18
|
@ -17,7 +17,10 @@ else
|
||||||
--comment "Deno js engine" \
|
--comment "Deno js engine" \
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue