From 991a2f76e53bdc827ff4169c4d808b71be51d828 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Sun, 19 Jan 2025 23:52:41 +0100 Subject: [PATCH] (make) remove data symlink --- .gitignore | 1 - .gitlab-ci.yml | 4 ---- Makefile | 3 ++- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 598fcef5e..ae06af586 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/data /locale/*/db.sqlite /db.sqlite diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8642254e8..a9f27a66b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,10 +34,6 @@ check: echo -e "\033[0;31m$name failed with exit code $exit_code\033[0m"; failures+=("$name"); }; script: - - start_section "Setup language version" - - make switch LANG=en - - end_section - - start_section "Install Dependencies" # temporarily replace FontAwesomePro dependency with its fake version as the CI can’t access it # the name needs to be changed in both package.json and pnpm-lock.yaml diff --git a/Makefile b/Makefile index 9b394160a..bc8f64496 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,8 @@ deploy: install switch: rm -rf cache rm -rf .nuxt/cache - ln -sfn ./locale/${LANG} ./data + sed -Ei s/NUXT_PUBLIC_LOCALE=.+/NUXT_PUBLIC_LOCALE=${LANG}/ .env + echo 'Please remember to restart the dev server to make the language switch visible' migrate: pnpm run-file server/migrate.ts