From c655baf5b7f64cca0fd47389c44a12fe09a654a0 Mon Sep 17 00:00:00 2001 From: Christoph Marzell Date: Thu, 6 Nov 2025 19:39:58 +0100 Subject: [PATCH] add configs --- Gemfile | 7 ++----- Gemfile.lock | 9 --------- config/environments/production.rb | 2 +- docker-compose.yml | 2 ++ 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/Gemfile b/Gemfile index 06b6db0..c572ebb 100644 --- a/Gemfile +++ b/Gemfile @@ -27,7 +27,7 @@ gem "jbuilder" # gem "bcrypt", "~> 3.1.7" # Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem "tzinfo-data", platforms: %i[ windows jruby ] +#gem "tzinfo-data", platforms: %i[ windows jruby ] # Reduces boot times through caching; required in config/boot.rb gem "bootsnap", require: false @@ -35,10 +35,7 @@ gem "bootsnap", require: false # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # gem "image_processing", "~> 1.2" -group :development, :test do - # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem - gem "debug", platforms: %i[ mri windows ] -end + group :development do # Use console on exceptions pages [https://github.com/rails/web-console] diff --git a/Gemfile.lock b/Gemfile.lock index 9f26fc7..9689fad 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -93,9 +93,6 @@ GEM connection_pool (2.5.4) crass (1.0.6) date (3.5.0) - debug (1.11.0) - irb (~> 1.10) - reline (>= 0.3.8) devise (4.9.4) bcrypt (~> 3.0) orm_adapter (~> 0.1) @@ -223,8 +220,6 @@ GEM tsort (0.2.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - tzinfo-data (1.2025.2) - tzinfo (>= 1.0.0) warden (1.2.9) rack (>= 2.0.9) web-console (4.2.1) @@ -244,18 +239,14 @@ PLATFORMS DEPENDENCIES bootsnap - debug devise jbuilder pg (~> 1.1) puma (>= 5.0) rails (~> 7.1.5, >= 7.1.5.2) sprockets-rails - tzinfo-data web-console RUBY VERSION ruby 3.0.7p220 -BUNDLED WITH - 2.5.23 diff --git a/config/environments/production.rb b/config/environments/production.rb index ab0a0f5..da02fe4 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -49,7 +49,7 @@ Rails.application.configure do # config.assume_ssl = true # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - config.force_ssl = true + config.force_ssl = false # Log to STDOUT by default config.logger = ActiveSupport::Logger.new(STDOUT) diff --git a/docker-compose.yml b/docker-compose.yml index 373d22a..62bdb09 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,6 +31,8 @@ services: - db environment: DATABASE_URL: postgres://postgres:password@db:5432/postgres + RAILS_ENV: production + SECRET_KEY_BASE: 5e1494fafd054d854b52661265e64e50d69787e9d4495173606f36fa3e5a685bd0264a41d6e138ea430f24008d5c07bcdf2a62a69de3c1b1cc042f05721432a0 networks: - praktikum-network volumes: