···11-diff --git a/config/runtime.exs b/config/runtime.exs
22-index 7c9cc14..8facd05 100644
33---- a/config/runtime.exs
44-+++ b/config/runtime.exs
55-@@ -15,9 +15,7 @@ end
66- base_url = URI.parse(base_url)
77-88- if base_url.scheme not in ["http", "https"] do
99-- raise "BASE_URL must start with `http` or `https`. Currently configured as `#{
1010-- System.get_env("BASE_URL")
1111-- }`"
1212-+ raise "BASE_URL must start with `http` or `https`. Currently configured as `#{System.get_env("BASE_URL")}`"
1313- end
1414-1515- secret_key_base =
1616-@@ -300,3 +298,5 @@ if appsignal_api_key do
1717- env: env,
1818- active: true
1919- end
2020-+
2121-+config :tzdata, :data_dir, System.get_env("TZDATA_DIR", "priv")
+1-6
pkgs/servers/web-apps/plausible/update.sh
···66#
77# * Add correct `name`/`version` field to `package.json`, otherwise `yarn2nix` fails to
88# find required dependencies.
99-# * Keep `tailwindcss` on version 2.0.1-compat (on `yarn` it will be upgraded due to the `^`).
1010-# This is needed to make sure the entire build still works with `postcss-7` (needed
1111-# by plausible).
129# * Adjust `file:`-dependencies a bit for the structure inside a Nix build.
1310# * Update hashes for the tarball & the fixed-output drv with all `mix`-dependencies.
1411# * Generate `yarn.lock` & `yarn.nix` in a temporary directory.
···2926SRC="https://raw.githubusercontent.com/plausible/analytics/${latest}"
30273128package_json="$(curl -qf "$SRC/assets/package.json")"
3232-export fixed_tailwind_version="$(jq '.dependencies.tailwindcss' -r <<< "$package_json" | sed -e 's,^^,,g')"
33293430echo "$package_json" \
3535- | jq '. + {"name":"plausible","version": $ENV.latest} | .dependencies.tailwindcss = $ENV.fixed_tailwind_version' \
3131+ | jq '. + {"name":"plausible","version": $ENV.latest}' \
3632 | sed -e 's,../deps/,../../tmp/deps/,g' \
3733 > $dir/package.json
3834···5854chmod -R u+rwx "$tmp_setup_dir"
59556056pushd $tmp_setup_dir/assets
6161-jq < package.json '.dependencies.tailwindcss = "'"$fixed_tailwind_version"'"' | sponge package.json
6257yarn
6358yarn2nix > "$dir/yarn.nix"
6459cp yarn.lock "$dir/yarn.lock"