RubyMe, a platform for sharing blog.
- Redis 2.2 +
- PostgreSQL 9.0 +
- Ruby 2.0.0 +
- Rails 4.0.0 +
- ImageMagick 6.5 +
Make sure postgresql already started.
git clone git@github.com:jasonZYJ/RubyMe.git
cd RubyMe && ruby setup.rb # make project RTF
RAILS_ENV=development rails s
bundle exec sidekiq -e development # for async sending email and uploading
cap production deploy
By default bundler installs gems using the ruby.taobao.org source,
if you'd rather use the official one, set environment variable USE_OFFICIAL_GEM_SOURCE
:
USE_OFFICIAL_GEM_SOURCE=1
We use rspec and capybara to test.
RAILS_ENV=test rake db:setup
RAILS_ENV=test rails s
Make sure already installed firefox.
bundle exec rspec -fd
bundle exec rspec -fd ./spec/features # Run only features test