Heroku: cannot login to my hosted app using metamask - heroku

I want to deploy my blockchain based decentralized application on heroku.
It has been deployed but when I try to login using my metamask account the account shows as null. It works on my local machine but not on heroku.
I do not want to clutter my question with code so I am sharing a link to the code
Code that is deployed on heroku

Finally figured it out. I was documenting the code for github and realized that I did not whitelist the app url in the metamask settings.

Related

Don't See Pull Requests on Heroku Pipelines Page

I'm an admin for our Heroku account and can see Review Apps on the Heroku pipelines page however I don't see open pull requests with the Create Review App option. I'm an admin of the account so I'm not sure what it is. Any ideas? Thanks!
Found it. I had to give Heroku access to my github account, even though it already had access to the corporate account I was a part of.

Deploying a Phoenix app to Heroku using CloudFlare

I started developing my personal blog (and a basic CMS) using Phoenix.
I successfully deployed it to Heroku following the Documentation/Guides, it's live.
Now I added my custom domain "jonathansoifer.com" to the Heroku App but everytime I access it, the URL on the browser switches from that custom domain to the "Heroku app URL" (jonathansoifer.herokuapp.com).
Am I missing something?
It might be useful to know that the DNS is being managed by CloudFlare, using CNAME flattening as recommended by CloudFlare itself.
CNAME • jonathansoifer.com • jonathansoifer.com.herokudns.com
Sure enough, the issue was within config/prod.exs.
I had hard coded the Heroku URL there in order to take advantage of Heroku's free SSL when using their subdomains.

Deploying a secret certificate file to Heroku from CI (Codeship)

An app I am building integrates with a 3rd party api. For access to this api it authenticates via oauth using the RSA-SHA1 signature method which requires a certificate file.
The app is continuously deployed on heroku (php) using codeship.
I don't want to check the certificate into source control for a variety of reasons but need a way to copy the certificate to the production dyno every time the app is deployed. This is because Heroku dynos are stateless so revert themselves when the app is deployed (as I understand it).
What is the best way to copy this certificate to my dyno? I thought of using a command like this but it fails to work:
heroku run "echo \"${CERTDATA}\" > ./storage/certs/my_cert.pem"
I could store the actual certificate data in an environment variable on Codeship so it would be always available.
Alternatively I could create the cert file in Codeship and then force add it to the git deployment to Heroku. Can anyone give any guidance here?
Why not just store the actual certificate data in an env var on Heroku?

Unable to disconnect Heroku app from GitHub Account

We're using Heroku Pipeline and GitHub integration:
Staging app was manually deployed with git push heroku master.
Production app was automatically deployed upon commit to Master on GitHub repo.
I want to change this workflow so that:
Staging app is automatically deployed upon commit to Master on GitHub repo.
Production app is the result of a Staging app being promoted.
Thus, I need to unlink the Production App from the GitHub Account/Repo. The instructions are here:
GitHub Integration | Heroku Dev Center
But, in my case, there's no "Disconnect" button:
How can I disconnect it?
Go to Manage Account: https://dashboard.heroku.com/account/applications
Click Applications tab
In Third-party Services: these are 2 options:
Re-authorize or Revoke access
click Revoke access
Remember to clear cookie or use incognito mode to re-login by another Github account
Go to Github and under your personal settings revoke access BUT THEN go back to Heroku, logout, login and you will see a warning from Heroku on the dashboard saying that access has been revoked from your GitHub account.
Click on Disconnect on that app.
Then reauthorize the others.
You can also revoke access of heroku dashboard from your github account.
Login Github
Go To Settings
Applications
revoke the connected heroku dashborad that will automatically disconnect your heroku from your github account.
This was a bug in Heroku's Dashboard.
Whenever the app was part of a Pipeline, it was impossible to disconnect it from the original github deploy hook.
Now the "disconnect" button is also available within pipelined apps.

Deploy Twilio to existing Heroku app

I find plenty of information on deploying Twilio to a new Heroku app, thereby creating it. I'm a little stuck on the process of deploying it to an app that I already have. My app has a lot of data in the database there and I don't want to have to recreate it all. Additionally I would like my app to serve PHP pages as well. Do I need 3 Heroku apps now then? Doesn't make sense!
Twilio developer evangelist here.
You don't need to build a new application to use Twilio on Heroku. If you already have your existing application all you need to do is add the relevant endpoints for receiving SMS messages and voice calls from Twilio and deploy to your existing Heroku deployment. It is recommended that you load your Twilio Account SID and Auth Token into the Heroku config so that you can use them there too.
Is there anything specific you need to know about this? What is the application you have already built?

Resources