diff --git a/.app_version b/.app_version index d90746a7..4240544f 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.22.3 +0.22.4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 22b5a331..a34d9ea6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +# 0.22.4 - 2025-01-15 + +### Changed + +- Run seeds even in prod env so Unraid users could have default user. +- Precompile assets in production env using dummy secret key base. + # 0.22.3 - 2025-01-14 ### Changed diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index ae36af49..8e801e98 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -6,8 +6,6 @@ ENV BUNDLE_PATH=/usr/local/bundle/gems ENV RAILS_LOG_TO_STDOUT=true ENV RAILS_PORT=3000 ENV RAILS_ENV=production -ENV SECRET_KEY_BASE=$SECRET_KEY_BASE - # Install dependencies for application RUN apk -U add --no-cache \ @@ -44,7 +42,7 @@ RUN bundle config set --local path 'vendor/bundle' \ COPY ../. ./ # Precompile assets for production -RUN bundle exec rake assets:precompile \ +RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rake assets:precompile \ && rm -rf node_modules tmp/cache # Copy entrypoint scripts and grant execution permissions diff --git a/docker/docker-compose.production.yml b/docker/docker-compose.production.yml index 90bfec24..a4b83a34 100644 --- a/docker/docker-compose.production.yml +++ b/docker/docker-compose.production.yml @@ -36,7 +36,7 @@ services: start_period: 30s timeout: 10s dawarich_app: - image: freikin/dawarich:latest + image: dawarich:prod container_name: dawarich_app volumes: - dawarich_public:/var/app/public @@ -91,9 +91,9 @@ services: resources: limits: cpus: '0.50' # Limit CPU usage to 50% of one core - memory: '2G' # Limit memory usage to 2GB + memory: '4G' # Limit memory usage to 2GB dawarich_sidekiq: - image: freikin/dawarich:latest + image: dawarich:prod container_name: dawarich_sidekiq volumes: - dawarich_public:/var/app/public @@ -147,7 +147,7 @@ services: resources: limits: cpus: '0.50' # Limit CPU usage to 50% of one core - memory: '2G' # Limit memory usage to 2GB + memory: '4G' # Limit memory usage to 2GB volumes: dawarich_db_data: diff --git a/docker/web-entrypoint.sh b/docker/web-entrypoint.sh index cfd52116..230f91cc 100644 --- a/docker/web-entrypoint.sh +++ b/docker/web-entrypoint.sh @@ -49,10 +49,10 @@ bundle exec rails db:migrate echo "Running DATA migrations..." bundle exec rake data:migrate -if [ "$RAILS_ENV" != "production" ]; then +# if [ "$RAILS_ENV" != "production" ]; then echo "Running seeds..." bundle exec rails db:seed -fi +# fi # run passed commands bundle exec ${@}