Note that there are some explanatory texts on larger screens.

plurals
  1. POForeman start returns bundle not found
    primarykey
    data
    text
    <p>I have recently switched from using Ubuntu system Ruby to using RVM. When I run <code>foreman start</code> I get a not found error for whatever the command is in my Procfile.</p> <p>My current Procfile is:</p> <pre><code>web: bundle exec unicorn -p $PORT -c ./unicorn.rb </code></pre> <p>So the error is:</p> <pre><code>/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/gems/foreman-0.60.2/bin/foreman-runner: 41: exec: bundle: not found </code></pre> <p><code>which foreman</code> returns</p> <pre><code>/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/bin/foreman </code></pre> <p><code>which bundle</code> returns</p> <pre><code>/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/bin/bundle </code></pre> <p>The output from <code>rvm info</code> is:</p> <pre><code>ruby-1.9.3-p327: system: uname: "Linux ubuntu 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" system: "ubuntu/12.10/x86_64" bash: "/bin/bash =&gt; GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)" zsh: " =&gt; not installed" rvm: version: "rvm 1.17.3 (stable) by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https://rvm.io/]" updated: "1 hour 10 minutes 26 seconds ago" ruby: interpreter: "ruby" version: "1.9.3p327" date: "2012-11-10" platform: "x86_64-linux" patchlevel: "2012-11-10 revision 37606" full_version: "ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]" homes: gem: "/home/timmillwood/.rvm/gems/ruby-1.9.3-p327" ruby: "/home/timmillwood/.rvm/rubies/ruby-1.9.3-p327" binaries: ruby: "/home/timmillwood/.rvm/rubies/ruby-1.9.3-p327/bin/ruby" irb: "/home/timmillwood/.rvm/rubies/ruby-1.9.3-p327/bin/irb" gem: "/home/timmillwood/.rvm/rubies/ruby-1.9.3-p327/bin/gem" rake: "/home/timmillwood/.rvm/gems/ruby-1.9.3-p327@global/bin/rake" environment: PATH: "/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/bin:/home/timmillwood/.rvm/gems/ruby-1.9.3-p327@global/bin:/home/timmillwood/.rvm/rubies/ruby-1.9.3-p327/bin:/home/timmillwood/.rvm/bin:/usr/local/heroku/bin:/home/timmillwood/Support-Tools/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" GEM_HOME: "/home/timmillwood/.rvm/gems/ruby-1.9.3-p327" GEM_PATH: "/home/timmillwood/.rvm/gems/ruby-1.9.3-p327:/home/timmillwood/.rvm/gems/ruby-1.9.3-p327@global" MY_RUBY_HOME: "/home/timmillwood/.rvm/rubies/ruby-1.9.3-p327" IRBRC: "/home/timmillwood/.rvm/rubies/ruby-1.9.3-p327/.irbrc" RUBYOPT: "" gemset: "" </code></pre> <p>I have also tried using rbenv with exactly the same issues. Foreman worked fine which I was using the system ruby, but I have purged these from Ubuntu and want to use RVM or rbenv so I can run Ruby 1.9 and 1.8.</p> <p>It's as if foreman can't find the bundle binary. I can run <code>bundle exec ruby web.rb</code> or <code>ruby web.rb</code> to run a sinatra app, but that fails because it's not loading my environment variables from .env like foreman does. I could use rack-env to load my .env file, then load my sinatra app using <code>ruby web.rb</code> but would rather use foreman.</p> <p>Any ideas what's wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload