Re: Themes
- From:
- Graham Ashton
- Date:
- 2010-06-15 @ 18:51
Re-sending this message to the list (to ensure it gets archived) as I
suspect it never came through.
On 1 Jun 2010, at 08:40, José Salinas wrote:
> Hi, Graham, thanks for your fast reply!
Hey. This time it's more a case of "better late than never"...
> Initially, I considered what you say, not pushing with themes:master
(thank you, I didn't know that feature!), what I did is creating a
personal repo with the themes branch in
http://github.com/josal/Nesta-themed-heroku, but the content was at the
master branch, because I needed to deploy from master (now from any
branch, with your tip, jeje).
I just cloned Nesta-themed-heroku and started up a local copy. There was
no theme applied, though it said schmitzelburger in config.yml. This is
why:
$ ls -R themes
penguinclassics/ postal3/ schmitzelburger/
themes/penguinclassics:
themes/postal3:
themes/schmitzelburger:
Empty folders.
> This morning I tried to deploy it exactly as you say. These were my steps:
Mmm, clearly something is not right with my instructions!
> git clone git://github.com/gma/nesta.git
> cd nesta
> git checkout -t origin/themes
> cp config/config.yml.sample config/config.yml
> vi config/config.yml (production, cache: false, content: content - (that
way it will be deployable to heroku))
> vi .gitignore - comment config/config.yml and content (that way it will
be deployable to heroku)
> mkdir themes
> scripts/theme install http://github.com/gma/nesta-theme-postal3.git
> heroku create
> git add .
> git commit -m "themed and deployable to heroku"
> git push heroku themes:master
>
> So, the deployment is at http://morning-mist-62.heroku.com/, and it has
no theme... And locally, it works perfectly...
I think you got lucky - I just went through each of your commands verbatim
and I'm getting this (in the browser and in the heroku logs):
/home/slugs/212519_6e982f4_1bf9/mnt/.bundle/gems/gems/rack-1.2.1/lib/rack/utils.rb:138:in
`union': can't convert Array into String (TypeError)
from
/home/slugs/212519_6e982f4_1bf9/mnt/.bundle/gems/gems/rack-1.2.1/lib/rack/utils.rb:138
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from
/home/slugs/212519_6e982f4_1bf9/mnt/.bundle/gems/gems/rack-1.2.1/lib/rack/request.rb:1
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from
/home/slugs/212519_6e982f4_1bf9/mnt/.bundle/gems/gems/rack-1.2.1/lib/rack/showexceptions.rb:3
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
... 21 levels...
from
/home/slugs/212519_6e982f4_1bf9/mnt/.bundle/gems/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`instance_eval'
from
/home/slugs/212519_6e982f4_1bf9/mnt/.bundle/gems/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`initialize'
from /home/heroku_rack/heroku.ru:1:in `new'
from /home/heroku_rack/heroku.ru:1
Or maybe they've changed something since you tried it. I'll see if I can
debug it, but it looks like the error is occurring fairly early on in the
app's bootup process. It's probably time for me to investigate Heroku's
bamboo stack, and tidy up Nesta's use of Bundler (I've been a bit lazy on
that front so far).
I'll let you know how I get on.
Cheers,
Graham
P.S. I've cc'd the mailing list so that this stuff gets recorded for the
benefit of search engines.