diff --git a/config/environments/development.rb b/config/environments/development.rb index 903636aee..60c2651d2 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -76,7 +76,7 @@ # Raise error when a before_action's only/except options reference missing actions config.action_controller.raise_on_missing_callback_actions = true - 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 da2d2a053..71c83802c 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: - .:/rails