Comments (5)
fixed problem by adding "cramp" file to /user/local/bin with content
#!/usr/bin/env ruby
require 'rubygems'
require 'cramp'
require 'cramp/generators/application'
if ['--version', '-v'].include?(ARGV.first)
puts "Cramp #{Cramp::VERSION}"
exit(0)
end
if ARGV.first != "new"
ARGV[0] = "--help"
else
ARGV.shift
end
Cramp::Generators::Application.start
It's normal practice or i need fix some system's issues?
from cramp.
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
from cramp.
That's weird :/ Are you using rvm and not loading rvm into the session by any chance ?
from cramp.
I don't know, but it change ruby interpretator and gem list.
from cramp.
I am using cramp with ruby-1.9.2-p290 in Ubuntu-11.04 and cramp new <project>
runs without problems.
Maybe your rvm-ruby-1.9.2 is somehow "broken"? You could try to rvm get head
or rvm update --head
(if its an older rvm-installation) and rvm reinstall ruby-1.9.2
.
from cramp.
Related Issues (20)
- No output when using Rack::Deflater
- Tests fail on 1.9.2 and 1.9.3 HOT 2
- ActiveSupport really needed?
- Cramp not flushing on render HOT 1
- Rack::Session:Cookie
- can you integrate cramp into existing rails app? HOT 2
- I've got YARD exceptions, installing cramp
- cramp/callbacks.rb:92:in `handle_exception HOT 1
- http://cramp.in borken
- Fibers and respond_with
- Invalid Multibyte Escape in Ruby 2.0.0 HOT 1
- Can't use Cramp in Gemfile HOT 1
- Support for Rails 4? HOT 1
- cramp websockets not work on Thin since faye-websocket ~> 0.7.1 HOT 2
- Reserved bit error HOT 2
- Have a question about on_start stage HOT 3
- Website down HOT 11
- Does cramp support other ORM? HOT 1
- cramp with twitter feed
- cramp.in is down HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cramp.