-
Notifications
You must be signed in to change notification settings - Fork 12
Fix Map for -develop #50
Comments
Probably Google Maps API key |
@kmcurry Yep, it has to do with the subdomain not matching the key used. We could solve this with a second key or including the development domain with the original key. How do you want to go about this? P.S.: This blocks #30 in the interim. |
Did I insert the last key?
I can create a second one or just remove the domain restriction..
…On Tue, Apr 3, 2018 at 10:26 PM, ryayak1460 ***@***.***> wrote:
@kmcurry <https://github.com/kmcurry> Yep, it has to do with the
subdomain not matching the key used. We could solve this with a second key
or including the development domain with the original key.
How do you want to go about this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADg2mccrTZVtdzu1MCUineoEotaMmu3Mks5tlC9pgaJpZM4RbVXr>
.
|
hey @ryayak1460 i looked for the key specifically with a restriction and I'm not sure I created this key. I made an alternative key for you to use for development. I apologize for the delay |
Awesome, thanks, @stanzheng! Now comes the question: where do we use this? I don't actually see the key referenced in code anywhere. The |
@ryayak1460 check where the js for the google maps key is being loaded. https://github.com/Code4HR/adopt-a-drain/blob/master/app/views/layouts/application.html.haml#L23 You just have to override the environment variable. Its a railism Rails.application.secrets.google_maps_javascript_api_key |
Aw man, I totally missed that! Cool, thanks, @stanzheng! So I see that in For reference, here's that config. |
yup! probably just needs to be configured in the new environment or in the yaml file. Since these keys are semi-public because they're sent to the client it should be fine to include! |
Who can update the value in Heroku? You, @stanzheng? @BretFisher? Or will we just update the value in the config file here in the repo? |
ENVVAR's are set for each app in Heroku. Looks like |
Works for me too, Bret! Thanks! |
norfolkdrains-develop.herokuapp.com does not work because the map does not show.
The text was updated successfully, but these errors were encountered: