How to keep connection pool for cloud firestore in rails - connection

Rails 5.1 gem 'google-cloud-firestore'
require 'google/cloud/firestore'
I just call firestore in backend.
How to keep connect firestore working when start backend server rails ??
How to setting this??
Pls help

Related

ELB Target groups health checks are failing with 403 after upgrading from Rails 5 to rails 6

ELB target group's health check is failing with status code 403 forbidden after upgraded rails to rails 6. However health check is working in development but not on AWS cloud.
Health check is succeed with rails 5 but not with rails 6.
Any help would be greatly appreciated.
This happens because of a new feature in Rails 6: host authorization. It checks whether the incoming request has correct hostname, and in case it doesn't, it returns 403.
AWS ELB doesn't set the Host header when it accesses the health check endpoint, which makes it fail.
You can fix the problem either by disabling the feature (config.hosts.clear) by adding the web server internal IP (ELB accesses it with the internal one) to the allowed hosts, like this:
config.hosts = ["example.org", IPAddr.new("10.0.99.0/24")]

Intercom rails API key to access token updation

Hi am new to Ruby On Rails. I got an email from intercom regarding depricating API keys. Am using Intercom-rails but i didnt see any updation changes in git can any one help me thanks in advance.
I found that Intercom ruby needs to be updated to access token hence i replaced my api key with access token it works fine for me. I am using api for create event and current user manager.

Requests to the server blocked, Shopify_app

I am attempting to install my rails app following the guide for the shopify_app gem. I installed it to my dev store on shopify and then i get this screen when trying to access the app.
EDIT: I am getting this in the console:
Refused to frame 'https://localhost:3000/' because it violates the following Content Security Policy directive: "child-src 'self' https://* shopify-pos://*". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback.
Please help me. No clue whats happening.
EDIT: IT seems as though there is an issue loading an iFrame from an http to a https on my shopify app because when I deploy the app to heroku and do it that way the app works...
How can I make it so i can use localhost as dev until im ready to launch?
You probably want to read up on using a service like forwardhq or ngrok. That way you can test and develop localhost, including webhooks, and proxy calls. Works like a peach. Shopify fully documents it, check out their suggestions.

MongoLab Connection with swift

Is there any way to connect to mongolab service in my swift app using DB user name and password instead of mongoAPI key? please help me with this.

Contacts Gem not importing yahoo contacts in production environment

I am using contacts-1.2.4 for importing contacts from yahoo and gmail. The issue I am facing is that this gem is working fine on my local setup but on my production environment yahoo contacts importing is not working. It repeatedly gives authentication error. I am using Rails-3.1.1 and ruby-1.9.2 for my local and production setup.
Got it working using - https://github.com/liangzan/contacts
Now importing is working fine on production env as well.
For yahoo and gmail it is better to use https://github.com/Diego81/omnicontacts since it doesn't require people to enter their username and password.

Resources