I can use my rails app in local and connect with facebook using rails devise and omniauth, but when i want to deploy it, the facebook callback port is wrong. After clicking on "login with facebook", it redirects me to facebook when i can enter my login, then it calls back my app like this :
http://myapp.cleverapps.io:8080/users/auth/facebook/callback?code=thelongcode#_=_
but it says "Oops! Google Chrome could not connect to myapp.cleverapps.io:8080" Meanwhile when i call
http://myapp.cleverapps.io/users/auth/facebook/callback?code=thelongcode#_=_
it works.
I don't understand why it is working in localhost:3000 and not on my deployment environment.
Why is omniauth adding 8080 to the url? Can i set it to 80 in this line for example?
devise_for :users, [...] :controllers => {[...] :omniauth_callbacks => "users/omniauth_callbacks"}