heroku run console returns ‘Error connecting to process’

I had the same problem, and although I did not solve the problem, I found a workaround. Instead of using: heroku run rake db:migrate You can use: heroku run:detached rake db:migrate This runs the command in the background, writing the output to the log. When it is finished you can view the log for the … Read more

Trying to render iframe: ancestor violates the following Content Security Policy directive: “frame-ancestors ‘none'”

The frame-ancestors value acts on the source of the iframe not the document framing it. Setting CSP on your page will have no effect on the framing. Think of frame-ancestors like X-Frame-Options on steroids: it restricts what is allowed to frame the content. Gist intentionally does not allow directly framing gists but instead provides a … Read more

Rails, Mongoid & Unicorn config for Heroku

You dont actually need to do this, so for people coming to view this question see: http://mongoid.org/en/mongoid/docs/rails.html “Unicorn and Passenger When using Unicorn or Passenger, each time a child process is forked when using app preloading or smart spawning, Mongoid will automatically reconnect to the master database. If you are doing this in your application … Read more

Heroku postgres postgis – django releases fail with: relation “spatial_ref_sys” does not exist

Here is the workaround that I’ve come up with for our review apps that use a database backup, through pg:backups:restore ( might want to enable meaintenance if you’re manipulating a production database): Copy your review app database locally (one that was recently restored through pg:backups:restore so you get all the data): heroku pg:pull [Database URL] … Read more

How to fix “Error: The server does not support SSL connections” when trying to access database in localhost?

Here I provide a workaround for the question, and not the title of this post. A better answer to the post overall would probably address configuring SSL for the local machine. I arrived here trying to resolve the problem of finishing that Heroku tutorial mentioned in the question and setting up the Postgres database to … Read more

Deploy the backend and frontend on the same Heroku app/dyno

I just successfully completed this goal using static files created during a heroku postbuild step, as described in this blogpost. I have a React frontend (could be anything though) and Express API backend. Each process has its own port in dev, but deploying on Heroku uses just one total. Put the working frontend in a … Read more

tech