feat: Include content with publishdate in the future for staging

This commit is contained in:
Simon 2021-04-27 14:49:35 +02:00
parent fabb09ed12
commit e7237cd7b9
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ install() {
dev() {
echo "🚧 Lancement du serveur pour le développement"
hugo server -D
hugo server -DF
}
dev_prod() {
@ -65,7 +65,7 @@ staging() {
echo "🚀 Déploiement du site en mode staging 🚀"
echo
rm -rf public
hugo --minify -D --environment staging
hugo --minify -DF --environment staging
node themes/hugo-theme-lowtech/scripts/typo
#DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +
docker-compose --context $DOCKER_CONTEXT -f docker-compose.staging.yml up -d --build --force-recreate