Skip to content

fighterleslie/ruby-china

 
 

Repository files navigation

Ruby China

This is the source code of Ruby China website.

Build Status

Requirements

  • Ruby 2.2.0 +
  • Memcached 1.4 +
  • Redis 2.2 +
  • MongoDb 2.4.4 +
  • ImageMagick 6.5+

Install in development

Vagrant

Install VirtualBox:

https://www.virtualbox.org/

Install Vagrant:

https://www.vagrantup.com/

Then:

$ vagrant up
$ vagrant ssh
$ cd /vagrant
/vagrant $ ./bin/setup
/vagrant $ rails s -b 0.0.0.0

Open http://localhost:3000 in host.

Mac OS X, use Homebrew

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install memcached
$ brew install redis
$ brew install mongodb
$ brew install imagemagick
$ brew install gs

Ubuntu

$ sudo apt-get install memcached mongodb redis-server imagemagick ghostscript
$ git clone https://github.com/ruby-china/ruby-china.git
$ cd ruby-china
$ ./bin/setup
Checking Package Dependencies...
--------------------------------------------------------------------------------
MongoDB 2.0+                                                               [Yes]
Redis 2.0+                                                                 [Yes]
Memcached 1.4+                                                             [Yes]
ImageMagick 6.5+                                                           [Yes]
--------------------------------------------------------------------------------

Installing dependencies
--------------------------------------------------------------------------------
The Gemfile's dependencies are satisfied
--------------------------------------------------------------------------------

Configure
--------------------------------------------------------------------------------
Your MongoDB host (default: 127.0.0.1:27017):
Your Redis host (default: 127.0.0.1:6379):
--------------------------------------------------------------------------------

Seed default data...                                                      [Done]

== Removing old logs and tempfiles ==

Ruby China Successfully Installed.

$ rails s

Testing

bundle exec rake

About Emoji Asset files

You may see emoji files 404 not found, after you publish you app. Because the emoji not include into Assets Pipline, what reason you can read Issue #522.

You need upload emoji images into /assets/emojis production environment path / CDN path, you can find image here: md_emoji

Contributors

Thanks

Forked from Homeland Project Theme from Mediom

Sites

License

Copyright (c) 2011-2015 Ruby China

Released under the MIT license:

About

🎪 Ruby China website source code.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 49.5%
  • JavaScript 21.0%
  • HTML 17.6%
  • CSS 7.8%
  • CoffeeScript 4.0%
  • Shell 0.1%