From 53e92b855352b5641177d81fd060391e76debafa Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 12 Nov 2025 00:32:48 +0100 Subject: [PATCH] Dawarich: Switched to production mode by default --- stacks/dawarich-stack.yaml | 8 +++----- templates.json | 6 ++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/stacks/dawarich-stack.yaml b/stacks/dawarich-stack.yaml index 6917651..a86eb2c 100644 --- a/stacks/dawarich-stack.yaml +++ b/stacks/dawarich-stack.yaml @@ -48,8 +48,7 @@ services: command: ['bin/rails', 'server', '-p', '3000', '-b', '::'] restart: on-failure environment: - #RAILS_ENV: production - RAILS_ENV: development + RAILS_ENV: ${RAILS_ENV:-production} REDIS_URL: redis://dawarich_valkey:6379 DATABASE_HOST: ${POSTGRESS_HOST} # Default 5432 @@ -57,7 +56,7 @@ services: DATABASE_USERNAME: ${POSTGRESS_DB_USERNAME} DATABASE_PASSWORD: ${POSTGRESS_DB_PASSWORD} DATABASE_NAME: ${POSTGRESS_DB_NAME} - MIN_MINUTES_SPENT_IN_CITY: 60 + MIN_MINUTES_SPENT_IN_CITY: ${MIN_MINUTES_SPENT_IN_CITY:-60} #Default localhost,::1,127.0.0.1,, APPLICATION_HOSTS: ${APPLICATION_HOSTS} TIME_ZONE: Europe/Amsterdam @@ -114,8 +113,7 @@ services: command: ['sidekiq'] restart: on-failure environment: - #RAILS_ENV: production - RAILS_ENV: development + RAILS_ENV: ${RAILS_ENV:-production} REDIS_URL: redis://dawarich_valkey:6379 DATABASE_HOST: ${POSTGRESS_HOST} # Default 5432 diff --git a/templates.json b/templates.json index f854e3f..0818b4d 100644 --- a/templates.json +++ b/templates.json @@ -66,6 +66,12 @@ "name": "PHOTON_API_KEY", "label": "Photon API Key", "description": "API Key for komoot Photon API" + }, + { + "name":"RAILS_ENV", + "label":"Rails Enviroment", + "description": "Sets app mode to development or production", + "default":"development" } ], "maintainer": "https://git.bprieshof.nl/brammp"