Compare commits

..

1 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
ae61461baa fix(dawarich): add missing build deps and handle seed failure
- Add missing system dependencies from upstream Dockerfile:
  libgeos++-dev, libxml2-dev, libxslt-dev, libjemalloc-dev
- Sort dependency list alphabetically
- Split db:prepare into db:create + db:schema:load + db:seed
  to handle upstream rgeo-geojson 2.2.0 seed bug gracefully

Fixes #12395
2026-03-01 11:15:10 +01:00
4 changed files with 22 additions and 15 deletions

View File

@@ -29,6 +29,8 @@ function update_script() {
exit
fi
ensure_dependencies libgeos++-dev libxml2-dev libxslt-dev libjemalloc-dev
if check_for_gh_release "dawarich" "Freika/dawarich"; then
msg_info "Stopping Services"
systemctl stop dawarich-web dawarich-worker

View File

@@ -9,7 +9,7 @@ APP="Pangolin"
var_tags="${var_tags:-proxy}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-10}"
var_disk="${var_disk:-5}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"

View File

@@ -21,7 +21,7 @@
"resources": {
"cpu": 2,
"ram": 4096,
"hdd": 10,
"hdd": 5,
"os": "Debian",
"version": "13"
}

View File

@@ -16,19 +16,23 @@ update_os
msg_info "Installing Dependencies"
$STD apt install -y \
build-essential \
git \
libpq-dev \
libgeos-dev \
libyaml-dev \
libffi-dev \
libssl-dev \
libjemalloc2 \
imagemagick \
libmagickwand-dev \
libvips-dev \
cmake \
redis-server \
nginx
git \
imagemagick \
libffi-dev \
libgeos-dev \
libgeos++-dev \
libjemalloc2 \
libjemalloc-dev \
libmagickwand-dev \
libpq-dev \
libssl-dev \
libvips-dev \
libxml2-dev \
libxslt-dev \
libyaml-dev \
nginx \
redis-server
msg_ok "Installed Dependencies"
PG_VERSION="17" PG_MODULES="postgis-3" setup_postgresql
@@ -82,7 +86,8 @@ elif [[ -f /opt/dawarich/app/package.json ]]; then
$STD npm install
fi
$STD bundle exec rake assets:precompile
$STD bundle exec rails db:prepare
$STD bundle exec rails db:schema:load
$STD bundle exec rails db:seed || msg_warn "Database seed failed (upstream rgeo-geojson issue), app will still work"
$STD bundle exec rake data:migrate
msg_ok "Installed Dawarich"