Total Pageviews

Monday, 10 March 2014

基于ruby/rails的一个多用户博客程序-Writings

 

Introduction

Writings is a multi-user blogging platform. It provides a concise dashboard and an online WYSIWYG editor.
The project is based on Rails 4.0 and Ruby 2.0, and it requires the following components:
  • Mongodb for database.
  • Memcached for caching.
  • Redis && Sidekiq for delay jobs.
  • Pandoc for markdown export.

Installation

Development Environment

sudo apt-get install mongodb memcached redis-server pandoc imagemagick

git clone https://github.com/chloerei/writings.git
cd writings
bundle

cp config/app_config.yml.example config/app_config.yml
cp config/mongoid.yml.example config/mongoid.yml

rails s

# run in separate terminals
sidekiq # delay jobs
guard start # live-reload

Production Environment

Generate a new secret_key_base string in config/app_config.yml.
An example deploy script in config/deploy.rb (for passenger), edit it for your situation.

from https://github.com/chloerei/writings/blob/master/doc/INSTALL-ubuntu.md,
 https://github.com/chloerei/writings/