Search code examples
ruby-on-railsruby-on-rails-3deviseomniauthrack-pow

devise/omniauth issue using pow - working on rails server


I'm using pow to host my rails app locally.

I've added devise and am trying to get omniauth to work following these steps.

when I visit http://my_site.dev/users/auth/twitter I get the following error -

URI::InvalidURIError

the scheme http does not accept registry part: my_site.dev (or bad hostname?)

Using the internal rails server works fine, visiting http://0.0.0.0:3000/users/auth/twitter works as expected.

Any idea what I'm doing wrong? Do I need to change something within pow?


Solution

  • Hostnames are not allowed to include underscores. Try this:

    $ mv ~/.pow/my_site ~/.pow/my-site
    

    The site will now be available under http://my-site.dev/.