DiscoverMeteor / DiscoverMeteor_En

The English version of Discover Meteor
12 stars 0 forks source link

Troubles getting local static English version running #1

Closed html5cat closed 10 years ago

html5cat commented 10 years ago

Tried copying contents of DiscoverMeteor_En into /source/chapter/en, but getting some middleman errors. Any guide on setup would be appreciated.

Thanks!

SachaG commented 10 years ago

What kind of errors?

jeden commented 10 years ago

If it's the same as me, whichever language I use:

ZeroDivisionError at /
divided by 0

Ruby    /Users/jeden/dev/projects/elapsus/meteor/original/DiscoverMeteorStatic/source/index.html.haml: in /, line 32
Web GET localhost/

and these are the first few lines of the traceback:

/Users/jeden/dev/projects/elapsus/meteor/original/DiscoverMeteorStatic/source/index.html.haml: in /
    - percentage_done = total_done * 100 / total_todo...
/Users/jeden/dev/projects/elapsus/meteor/original/DiscoverMeteorStatic/source/index.html.haml: in block in singleton class
    - percentage_done = total_done * 100 / total_todo...
/Library/Ruby/Gems/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb: in call
      method.bind(scope).call(locals, &block)...
/Library/Ruby/Gems/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb: in evaluate
      method.bind(scope).call(locals, &block)...
/Library/Ruby/Gems/2.0.0/gems/tilt-1.4.1/lib/tilt/haml.rb: in evaluate
SachaG commented 10 years ago

OK, just pushed an update to DiscoverMeteorStatic :)

html5cat commented 10 years ago

I get the following errors with the recent update:

error  tmp/api/index.html
divided by 0
/Users/yurik/code/meteor/DiscoverMeteorStatic/source/api.html.erb:31:in `/'
/Users/yurik/code/meteor/DiscoverMeteorStatic/source/api.html.erb:31:in `block in singletonclass'
/Users/yurik/code/meteor/DiscoverMeteorStatic/source/api.html.erb:65531:in `instance_eval'
/Users/yurik/code/meteor/DiscoverMeteorStatic/source/api.html.erb:65531:in `singletonclass'
/Users/yurik/code/meteor/DiscoverMeteorStatic/source/api.html.erb:65529:in `__tilt_70256563534800'

....

/Users/yurik/.rvm/gems/ruby-1.9.3-p545/bin/middleman:23:in `load'
/Users/yurik/.rvm/gems/ruby-1.9.3-p545/bin/middleman:23:in `<main>'
/Users/yurik/.rvm/gems/ruby-1.9.3-p545/bin/ruby_executable_hooks:15:in `eval'
/Users/yurik/.rvm/gems/ruby-1.9.3-p545/bin/ruby_executable_hooks:15:in `<main>'
   identical  tmp/404/index.html
There were errors during this build
SachaG commented 10 years ago

What if you just don't go to the /api page?

html5cat commented 10 years ago

Genius :+1:

SachaG commented 10 years ago

Haha, that was an easy fix ;)