From 25b0065f0e40b40e87035638448b67814b52c1e7 Mon Sep 17 00:00:00 2001 From: Jason Schulz Date: Fri, 3 May 2024 13:06:42 -0400 Subject: [PATCH] * chore(development.rb): add DEV_HOST environment variable to the list of allowed hosts * feat(docker-compose.yml): add DEV_HOST environment variable to the web service --- config/environments/development.rb | 2 ++ docker-compose.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 903636aee..674f37999 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -79,4 +79,6 @@ config.hosts << /[a-z0-9\-]+\.ngrok-free\.app/ config.hotwire_livereload.reload_method = :turbo_stream + + config.hosts << ENV['DEV_HOST'] end diff --git a/docker-compose.yml b/docker-compose.yml index b0b5c71e2..32f38ab66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,6 +30,7 @@ services: environment: - REDIS_URL=redis://redis/0 - DATABASE_URL=postgres://app:secret@postgres/app_development + - DEV_HOST=${DEV_HOST} ports: ["3000:3000"] volumes: - .:/app