Heroku_Can't Upgrade to Cedar-14

Ruby - Heroku migrating to Cedar 14

I saw this error last week when trying to upgrade a Heroku app to Cedar-14 following their instructions. The problem was that the app was using an older version of Ruby that Cedar-14 didn't support. I had to first upgrade the version of Ruby I was using (to 2.1.7, in my case) and then I was able to upgrade Cedar.

RJB works fine on Heroku Cedar, inexplicably broken on Cedar 14?

On cedar-14 you must set JAVA_HOME to /usr/lib/jvm/java-1.7.0-openjdk-amd64/

Can't create files Heroku Cedar-14

Even if you SSH in somewhere, that would be an isolated instance. Imagine scaling from 1 to 100 dynos and then making a filesystem modification on one of them, how should that work in terms of syncing etc?

I assume you want to add files outside of where index.php lives, so you basically want to change the document root for the project to a subdirectory.

Your "+1 up from application folder" is then the Git project root, and your application folder is the document root. Create a Procfile as instructed here to set the document root to your application folder: https://devcenter.heroku.com/articles/custom-php-settings#setting-the-document-root

You do realize however that anything you write into the data folder on a dyno will not be available on your local computer, right? You can't "download" it, it's a Git repo. The data you write on one dyno also will not be available on other dynos (e.g. when you heroku ps:scale web=10 to have ten dynos), and every time you scale up or down, git push, or just after around 24 hours (when dynos auto restart), any changes to the local filesystem will be gone.



Related Topics



Leave a reply



Submit