Search code examples
ruby-on-railsrubyrubygemsruby-on-rails-5

Custom domain in rails is not working for app.test.com:3000


My company has a rails 5.2.4 application, after starting the development server by

rails s

The server is running on localhost:3000. But a company is using app.test.com:3000 domain in order to access the application...


Solution

  • You can just use: lvh.me, more about subdomain

    Run rails s -p 3000 -b lvh.me

    Visit app.lvh.me:3000