Rails google drive gem issue with heroku - ruby-on-rails

I have accessed my google sheet file using google drive gem with command
GoogleDrive.saved_session("./config.json")
Config file contains credentials to connect to drive. On my local machine server asks to paste as url in browser and paste authentication key.
I have done all this and on my localhost code is working fine.
But I have deployed my code to heroku and I am facing the issue. App crashes with logs saying to to find authentication code from given url and paste it.
I find this authentication code successfully but on heroku how to paste it? On localhost I was able to put in the key in terminal. How to make it run on heroku.
Please help me.

Related

"BaconQrCode\Encoder\Encoder" not found

I am using SimpleSoftwareIO/simple-qrcode in Laravel 8 application.
Provider is loaded successfully.
enter image description here
aliases is also added.
enter image description here
I am loading the QR code in the blade file which is working fine in the local development server.
When I load that in production which uses Nginx and Docker. I am getting the below error.
enter image description here
Can someone assist in this issue.
I have tried to downgrade the versions of the liabraries. But it is not working on the nginx production server.

Heroku - how to reconnect Mailgun to my app

Im working on a project with Ruby on Rails language, deployed to Heroku everything is working fine
I had Mailgun addon installed in my Heroku app
at one point I tried to change it to another mailing Addon
so I unlinked the Mailgun addon and connected another Addon
after a little research, I wanted to connect back the Mailgun addon.
when I tried to connect Mailgun again, it said that my app has an account and I cant reconnect it
I cant access my account by the email written in the Heroku's error notification.
what should I do at this point?
In that link below, there is an image of the error I get in my terminal.
Heroku Error for command: " heroku addons:create mailgun:starter"
Another link for an image of the error I get when trying to add Mailgun addon through my heroku app dashboard.
Heroku Error from Heroku dashboard
If you think I should use another mailer addon, I would love to hear about it.
Thank you in advance

I can not open the url of the site deployed with dokku

Hello everybody) I started learning dokku. Going through the tutorial from the documentation for the Heroku Ruby on Rails "Getting Started" app I can't go to url generated by dokku in the browser. I am only using my local machine while learning and doing git push to localhost. This command works without errors, the container works, I get the url to the site, but I cannot open it in the browser. The same problem appears with another project, when I try to deploy a python django project, this is just a project skeleton created by django, without my code. It must show a welcome page and I want to see it when the site is running on dokku but I cannot go to the url. I tried to use dokku domains and dokku proxy but couldn't solve the problem. Please help me figure out how to fix this. I'm new to dokku, docker, nginx and deployment so the problem can be trivial. I'm also want to know on which ip, port dokku runs the sites and on which ip do I need to run the wsgi server inside the container?

Azure url encoding/decoding issue

I've recently moved a Rails 6 web application to Azure Web App service using Linux from an AWS Elastic beanstalk environment. I'm having an issue with a particular URL, when searching the following link:
www.website.com/link/asd%2Fasw
I get a 404 error. In my browser the link remains as www.website.com/link/asd%2Fasw, but in myWeb App service logs it decodes the URL to:
www.website.com/link/asd/asw
Hence why we get the 404 page error. I'm unsure of why this is happening. In our AWS environment the logs recorded the link as www.website.com/link/asd%2Fasw and everything was working as it should.
I have tried modifying the web.config file, but have been told that being a Linux environment this file is not supported (unsure of if this is correct).

Deploy a Rails app to Openshift: rhc - Username or password is not correct

Our company wants to build a Rails-based backend website and we chose the OpenShift platform to host and deploy. To connect the two, all the guides lead to the installation of the ruby rhc gem and then setup it.
I'm fresh to OpenShift and I'm trying to setup the rhc toolkit on a remote Ubuntu server. Now I ran gem install rhc and everything went fine. Since I have to configure rhc through rhc setup, I ran this command afterwards and just after asking which server I want to use (I left it blank to use openshift.redhat.com) it comes to the login part.
At this moment, OpenShift Online allows you to login only with your GitHub account, so I gave in the GitHub credentials and... voilĂ ! Username or password is not correct. Tried this both on PuTTy and ConEmu.
I swear I checked the login data more than 1000 times, and I'm totally lost.
Thank you a lot in advance
If you want to use OpenShift Online NextGen Developer Preview, you do not use the rhc client. You need to use the oc client. So anything you read where it says rhc is the wrong documentation.
Once you are logged in through the new web console, select on the '?' in circle top right and select command line tools. It will give you links to the 'oc' tools to download, plus the command you need to run to login from the command line using a session access token.
The link to that page should be:
https://console.preview.openshift.com/console/command-line
Also suggest you get down and use the free eBook for the new platform at:
https://www.openshift.com/promotions/for-developers.html
It uses a VM, but ignore the client login step from that and use that from page above instead and then follow examples in the book against the Online NextGen Developer Preview instead.

Resources