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
Seahorse::Client::Networkingerror Amazon S3 File Upload with Rails
Sublime Text 2 Doesn't Save Built SASS File
How to Make an Infowindow Automatically Display as Open with Google-Maps-For-Rails
How to Overwrite the '{ }' Object
Cannot Require 'Nokogiri' in Rails (But Works in Irb)
Pageobject with Ruby - Set Text in a Text Field Only Works in the Main File
Custom Gem Execution Fails with Nomethoderror
How to Write a Method That Counts the Most Common Substring in a String in Ruby
Rails - How to Add Contacts to Sendgrid Marketing Campaigns via API
My Classes Can't Use Shoes Methods Like Para
Check If String Is Repetition of an Unknown Substring
Ruby: How to Process a CSV File with "Bad Commas"
Differencebetween Def Func(Var) and Def Func=(Var)
No Such File to Load -- Bundler/Setup in Rails 3.2 with Passenger