Menu icon Foundation
Error in upgrade Foundation 4 to 5

Hi,

I'm having an error when upgrading to Foundation 5.

I'm following page http://foundation.zurb.com/docs/upgrading.html
and on topic "Upgrade using our CLI and Compass"
ao executar o comando "foundation upgrade" ocorre o seguinte erro:
to run the "foundation upgrade" command the following error occurs:

[email protected]:~/Documents/Ruby_Rails/Sites/Carbon$ foundation upgrade
gsub config.rb
/home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/actions/file_manipulation.rb:232:in `binread': No such file or directory @ rb_sysopen - /home/yanknote/Documents/Ruby_Rails/Sites/Carbon/config.rb (Errno::ENOENT)
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/actions/file_manipulation.rb:232:in `gsub_file'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:79:in `upgrade'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/foundation-1.0.4/bin/foundation:4:in `'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/foundation:23:in `load'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/foundation:23:in `'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `'
[email protected]:~/Documents/Ruby_Rails/Sites/Carbon$

could someone help me please?

thank you

upgrade

Hi,

I'm having an error when upgrading to Foundation 5.

I'm following page http://foundation.zurb.com/docs/upgrading.html
and on topic "Upgrade using our CLI and Compass"
ao executar o comando "foundation upgrade" ocorre o seguinte erro:
to run the "foundation upgrade" command the following error occurs:

[email protected]:~/Documents/Ruby_Rails/Sites/Carbon$ foundation upgrade
gsub config.rb
/home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/actions/file_manipulation.rb:232:in `binread': No such file or directory @ rb_sysopen - /home/yanknote/Documents/Ruby_Rails/Sites/Carbon/config.rb (Errno::ENOENT)
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/actions/file_manipulation.rb:232:in `gsub_file'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:79:in `upgrade'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /home/yanknote/.rvm/gems/ruby-2.1.0/gems/foundation-1.0.4/bin/foundation:4:in `'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/foundation:23:in `load'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/foundation:23:in `'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
from /home/yanknote/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `'
[email protected]:~/Documents/Ruby_Rails/Sites/Carbon$

could someone help me please?

thank you

James Stone over 5 years ago

Did you install your Foundation 4 project with Compass? The error message says it is missing the config.rb file. This file provides a set of directories and options that are used by Compass to compile the CSS files from Sass/Scss.

However, it looks like you are trying to upgrade an existing Ruby on Rails project. If this is the case then all you need to do is to change the gem from 'zurb-foundation' to 'foundation-rails' and run bundle install.

http://foundation.zurb.com/docs/upgrading.html

You will also need to manually update your sass and javascript where it calls foundation which it talks about at the end of this document. If you were doing a lot of JavaScript you might find the migration plugin useful.

https://github.com/zurb/foundation-migrate

I recently upgraded a Ruby Middleman installation from Foundation 4 to Foundation 5. You might find this post useful to see the steps I went through, with the understanding that things are slightly different with RoR.

http://www.manofstone.com/blog/using-ruby-middleman-with-zurb-foundation-5/