- Linux: ubuntu 14.04 LTS
- Ruby: 2.2.4p230
- Mysql: 5.5+
可以查看 database_structure.sql
-
下载并配置项目文件
$ git clone https://git.coding.net/sweetysoft/si_lu_le_gou_web.git $ cd pin_tuan_bao_web
$ 修改config/database.yml文件,调整好其中数据库的配置 $ 修改config/log4r.yml文件,调整好其中的日志配置 $ bundle install $ bundle exec rake db:create $ bundle exec rake db:migrate ```
-
运行 God
$ bundle exec god -c calculate.god
-
运行 Rails 服务器
$ bundle exec thin -C start config/thin.conf
-
启动 Delayed job $ bundle exec RAILS_ENV=production bin/delayed_job -n 3 start
- God 用于保证自动抓取脚本的稳定运行
- rufu-scheduler 保证抓取脚本定时执行
- 首页监控记录以及各个统计页面数据加载时间;
- bundle exec cap deploy