-
Notifications
You must be signed in to change notification settings - Fork 129
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
Can't run in ubuntu #19
Comments
fixed problem by adding "cramp" file to /user/local/bin with content #!/usr/bin/env ruby if ['--version', '-v'].include?(ARGV.first) if ARGV.first != "new" Cramp::Generators::Application.start It's normal practice or i need fix some system's issues? |
Or even better #!/usr/bin/env ruby
require 'rubygems'
require 'cramp'
require 'cramp/generators/application'
case ARGV.first
when "new"
ARGV.shift
Cramp::Generators::Application.start
when 's', 'server'
unless File.exist? 'config.ru'
puts "Missing configuration of application!!!"
end
require 'thin'
Thin::Runner.new(%w[--timeout 0 -R config.ru start]).run!
when '--version', '-v'
puts "Cramp #{Cramp::VERSION}"
when '--help', '-h'
Cramp::Generators::Application.start
else
puts 'Use -h, --help for help'
end |
That's weird :/ Are you using rvm and not loading rvm into the session by any chance ? |
I don't know, but it change ruby interpretator and gem list. |
I am using cramp with ruby-1.9.2-p290 in Ubuntu-11.04 and |
I had installed rvm in my Ubuntu 11.04. I create ruby 1.9.2 for cramp. Then i run
gem install cramp
It installed cramp's gem and dependent gems. But when I run
"cramp new my_site"
it falled with error "cramp: command not found". Maybe I need include some additional path to my $PATH variable?
The text was updated successfully, but these errors were encountered: