Here is the whole error from rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
rake aborted!
bad URI(is not URI?):
Tasks: TOP => environment
Not much to go on.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Turned out to be largely user error and my lack of understanding of how the /environment files are called. I had a section to parse the CLOUDANT_URL environment variable from Heroku which of course is not available during precompile phase. This probably should have been more obvious to me.
I moved this out into a separate initializer which has an
if Rails.env.production?block wrapping it. I hope that is a reasonable way to handle this.Thanks everyone for your help.