Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running 'foreman start' #100

Open
m-bodmer opened this issue Mar 29, 2014 · 2 comments
Open

Error when running 'foreman start' #100

m-bodmer opened this issue Mar 29, 2014 · 2 comments

Comments

@m-bodmer
Copy link

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:

  • which
[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
  • gem env
[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
Copy link
Author

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
Copy link
Contributor

sukima commented Mar 31, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants