coffeescript-cookbook / coffeescript-cookbook.github.io

CoffeeScript Recipes, Examples and Tutorials
https://coffeescript-cookbook.github.io
Other
562 stars 179 forks source link

Error when running 'foreman start' #100

Open m-bodmer opened 10 years ago

m-bodmer commented 10 years ago

When pulling down a fresh issue from Github, I run bundle install without any errors, but when running foreman start I get the following error message:

15:20:25 jekyll.1 | /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global/gems/commander-4.1.5/lib/commander/runner.rb:365:in `block in require_program': program version required (Commander::Runner::CommandError)
15:20:25 jekyll.1 |     from /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
15:20:25 jekyll.1 |     from /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
15:20:25 jekyll.1 |     from /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
15:20:25 jekyll.1 |     from /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global/gems/commander-4.1.5/lib/commander/delegates.rb:11:in `run!'
15:20:25 jekyll.1 |     from /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'

Some other terminal commands:

[coffeescript-cookbook.github.com]  [master*]    which ruby
/Users/mbodmer/.rvm/rubies/ruby-1.9.3-p484/bin/ruby
[coffeescript-cookbook.github.com]  [master*]    which jekyll
/Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@coffeescript-cookbook/bin/jekyll
[coffeescript-cookbook.github.com]  [master*]    gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.2.1
  - RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-darwin13.0.0]
  - INSTALLATION DIRECTORY: /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@coffeescript-cookbook
  - RUBY EXECUTABLE: /Users/mbodmer/.rvm/rubies/ruby-1.9.3-p484/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@coffeescript-cookbook/bin
  - SPEC CACHE DIRECTORY: /Users/mbodmer/.gem/specs
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-13
  - GEM PATHS:
     - /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@coffeescript-cookbook
     - /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@coffeescript-cookbook/bin
     - /Users/mbodmer/.rvm/gems/ruby-1.9.3-p484@global/bin
     - /Users/mbodmer/.rvm/rubies/ruby-1.9.3-p484/bin
     - /Users/mbodmer/.rvm/bin
     - /usr/local/heroku/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin

I am running Mac OS X 10.9.2, and have previously installed Jekyll for another project.

m-bodmer commented 10 years ago

Solution to this was that I had to independently run bundle exec jekyll build --watch before running foreman start for the first time. The problem here is that when trying to run foreman start doesn't actually run the jekyll task command. If I run bundle exec jekyll build --watch independent of foreman, it works as desired.

sukima commented 10 years ago

I think that this is because foreman spawns each program at the same time and no in parallel. The build process takes quite some time.

If you run a jekyll build the first time subsequent foreman start will work. Perhaps a rake task and a note in the README would help.