(make) remove data symlink

This commit is contained in:
Valentyne Stigloher 2025-01-19 23:52:41 +01:00
parent 766281714d
commit 991a2f76e5
3 changed files with 2 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
/data
/locale/*/db.sqlite /locale/*/db.sqlite
/db.sqlite /db.sqlite

View File

@ -34,10 +34,6 @@ check:
echo -e "\033[0;31m$name failed with exit code $exit_code\033[0m"; failures+=("$name"); echo -e "\033[0;31m$name failed with exit code $exit_code\033[0m"; failures+=("$name");
}; };
script: script:
- start_section "Setup language version"
- make switch LANG=en
- end_section
- start_section "Install Dependencies" - start_section "Install Dependencies"
# temporarily replace FontAwesomePro dependency with its fake version as the CI cant access it # temporarily replace FontAwesomePro dependency with its fake version as the CI cant access it
# the name needs to be changed in both package.json and pnpm-lock.yaml # the name needs to be changed in both package.json and pnpm-lock.yaml

View File

@ -39,7 +39,8 @@ deploy: install
switch: switch:
rm -rf cache rm -rf cache
rm -rf .nuxt/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: migrate:
pnpm run-file server/migrate.ts pnpm run-file server/migrate.ts