I recently switched from a Ruby system on Ubuntu to using RVM. When I run foreman start , I get an error not found for any command in my Procfile.
My current Procfile:
web: bundle exec unicorn -p $PORT -c ./unicorn.rb
So the error is:
/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/gems/foreman-0.60.2/bin/foreman-runner: 41: exec: bundle: not found
which foreman returns
/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/bin/foreman
which bundle returns
/home/timmillwood/.rvm/gems/ruby-1.9.3-p327/bin/bundle
Exiting rvm info :
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 => GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)" zsh: " => not installed" rvm: version: "rvm 1.17.3 (stable) by Wayne E. Seguin < wayneeseguin@gmail.com >, Michal Papis < mpapis@gmail.com > [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: ""
I also tried using rbenv with exactly the same problems. Foreman worked fine and I used the ruby ββsystem, but I cleaned them from Ubuntu and want to use RVM or rbenv so that I can run Ruby 1.9 and 1.8.
As if the master could not find the binary package. I can run bundle exec ruby web.rb or ruby web.rb to run the sinatra application, but this fails because it does not load my environment variables from .env, for example, a wizard. I could use rack-env to download my .env file and then download my sinatra application using ruby web.rb , but would rather use a wizard.
Any ideas what's wrong?
source share