Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 1.33 KB
# This needs to be called after one of the gemfile templates
apply 'https://github.com/snusnu/rails-templates/raw/master/rails_application_config.rb'
apply 'https://github.com/snusnu/rails-templates/raw/master/database.yml.rb'
run 'bundle install'
initializer 'jruby_monkey_patch.rb', <<-CODE
if RUBY_PLATFORM =~ /java/
# ignore the anchor to allow this to work with jruby:
# http://jira.codehaus.org/browse/JRUBY-4649
class Rack::Mount::Strexp
class << self
alias :compile_old :compile
def compile(str, requirements, separators, anchor)
self.compile_old(str, requirements, separators)
end
end
end
end
CODE
run 'rails generate rspec:install'
apply 'https://github.com/snusnu/rails-templates/raw/master/spec_helper.rb'
run 'rake spec --trace'
say ''
say '--------------------------------------------------------------------------'
say "Edit your Gemfile (don't forget to run 'bundle install' after doing that)"
say 'Generate a scaffold: rails generate scaffold Person name:string'
say 'Automigrate the DB: rake db:automigrate'
say 'Start the server: rails server'
say '--------------------------------------------------------------------------'
say 'After the sever booted, point your browser at http://localhost:3000/people'
say '--------------------------------------------------------------------------'
say ''