DEPRECATED — fully superseded, nothing needed from this gem.
- ask-local core injects
RAILS_DEVELOPMENT_HOSTSper process, so Rails apps boot behind ask-local with zero config — no hosts patch needed.- Action Cable works by default behind ask-local: Rails 7+
allow_same_origin_as_host(default true) accepts the connection when the browser's Origin matches the proxied Host — no origins patch needed.ask-local initalready generatesconfig/local.yml— no generator needed.Ask::Local::Rails.urlwas only a wrapper aroundENV["ASK_LOCAL_URL"], which ask-local injects into every process.Archived at
deprecated/ask-local-railsfor history. No further development. Remove this gem from any Gemfile.
ask-local-rails
Rails integration for ask-local.
Railtie, install generator, and helpers wiring a Rails app into stable
https://<app>.localhost URLs. Requires Rails 7.1+.
Installation
gem "ask-local-rails"bundle install
rails generate ask_local:installThe generator:
- creates
config/initializers/ask_local.rb - allows
.localhosthosts + Cable origins indevelopment.rb - rewrites hardcoded
-p 3000to-p $PORTinProcfile.dev/Procfile(compound lines it cannot classify are left alone with a warning) - creates an empty
ask-local.jsonif missing
Helpers
Ask::Local::Rails.url # => "https://fix-ui.myapp.localhost" (or fallback)
Ask::Local::Rails.host # => "fix-ui.myapp.localhost"
Ask::Local::Rails.proxied? # => true when booted through ask-localUse url for mailer hosts, OmniAuth callbacks, and webhook targets —
never hardcode localhost:3000.
Agent skill
Ships local_dev under ask/skills/ (auto-discovered by ask-skills):
boot via ask-local, wire via ask-local get, callbacks from
ASK_LOCAL_URL, doctor/list/prune for troubleshooting.
Development
bundle install
bundle exec rake testLicense
MIT