gazaskygeeks/pasto

Heroku deployment

Closed this issue · 6 comments

@mhmdshorafa could you explain what kind of problem you face on Heroku.

See if I can help

it works perfect locally but on heroko it opens the google sign page but when you sign in it redirects you to Error: redirect_uri_mismatch look here :" https://pastoo.herokuapp.com/" @besarthoxhaj

You mean this?

screen shot 2017-03-05 at 21 41 22

I think it has something to do with google sign in. Usually OAuth requires a callback url and an origin domain from where users sign in.

Try to have a look at the google developer console and see if you find the place where to add https://pastoo.herokuapp.com.

Will have a look at it and I will add a section in the README

Fixed here #39.

The problem was in the google API setup. Notice this part of the documentation: https://developers.google.com/identity/sign-in/web/devconsole-project

In the Authorized JavaScript origins field, enter the origin for your app. You can enter multiple origins to allow for your app to run on different protocols, domains, or subdomains. You cannot use wildcards. In the example below, the second URL could be a production URL.

http://localhost:8080
https://myproductionurl.example.com

I setup my own key and deployed the app to another Heroku instance, it works!