Skip to content

Commit

Permalink
* chore(development.rb): add DEV_HOST environment variable to the lis…
Browse files Browse the repository at this point in the history
…t of allowed hosts

* feat(docker-compose.yml): add DEV_HOST environment variable to the web service
  • Loading branch information
Jason Schulz committed May 3, 2024
1 parent d756f54 commit 25b0065
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
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:
- .:/app
Expand Down

0 comments on commit 25b0065

Please sign in to comment.