Source

ruby-china /

Filename Size Date modified Message
app
config
db
doc
lib
misc
public
script
solr/conf
spec
vendor
362 B
9 B
395 B
318 B
2.6 KB
10.1 KB
1.6 KB
1.1 KB
159 B

Ruby-China

This is the source code of Ruby China website.

Build
Status

Install

  • You need Ruby 1.9.2+, Rubygems and Rails 3.2+ first.
  • Install and start Redis, MongoDB, memcached, Python, Pygments

and run:

cp config/config.yml.default config/config.yml
cp config/mongoid.yml.default config/mongoid.yml
cp config/redis.yml.default config/redis.yml
cp config/thin.yml.default config/thin.yml
bundle install
rake assets:precompile
rake db:seed
thin start -O -C config/thin.yml
./script/resque start
bundle exec rake sunspot:solr:start
easy_install pygments # 或者 pip install pygments
rake db:migrate

or you can just this issue

rake test:init

to prepare all the config files and start essential services.

Deploy

$ cap deploy
$ cap production remote_rake:invoke task=db:setup

Apply Google JSAPI

Memcached

Dalli requires memcached 1.4.x +

Contributors

Thanks

Forked from Homeland Project

License

Copyright (c) 2011-2012 Ruby China

Released under the MIT license: