Skip to content

Commit

Permalink
Allow setting of allowed dev host from .env (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulso authored May 3, 2024
1 parent 10a15d0 commit 78f8833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78f8833

Please sign in to comment.