cs-service 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e1e6b1609638eb2984ddc3476c99761de9bb2ca
4
- data.tar.gz: ce27442e9e64e370b62d7f00153138c886bb5eed
3
+ metadata.gz: 606521c9d1281693930ffae5e433c9fa8dd99632
4
+ data.tar.gz: 881ebcc7a1d62086d00e288917fafb9d612bafb8
5
5
  SHA512:
6
- metadata.gz: 672a48afb864136b9aef342ff74439c499cb8b7f4e33188ac49e72abbac15ad93d9d9ac42f6dab4ad8fa0a2925f1bdb89f744a540e6e2f0b85ad823f3278bb25
7
- data.tar.gz: 349c121df0b0ae3f10baeb3e4e8b00caccd32a1be76de05f5949bb667129c67e056f84fade83a2f347021d42ef4bf7a1fb427184144098113259a5e39986b5f8
6
+ metadata.gz: 2d33e7cf4252d4d6449d32dc6733a541bc07ec24aac6e7302b8ac2ec6ebc6f02cc12ebf66d7efe5133b6b57b9131b8520da0d106bf298ddfc1a46ed4a791f28a
7
+ data.tar.gz: bfda6d7bbd9545f01adaf5b30f6131bd7e4b5f1fa206ae75b1fba18b49458e66f566bfe1bb255cee9e0d99ee04b381559baf789aa9f678a62bb2a03d49029991
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Cs::Service
2
2
 
3
- cs-service 财说服务管理工具
3
+ cs-service 财说服务管理工具, 根据项目中的config/project.yml, 来启动相关服务
4
+
5
+ 配置文件示例: [config/project.yml](https://gitlab.caishuo.com/ruby/cs-service/blob/83fd09c1c2ee9e95ed07252090501c03557fa54d/examples/project.yml)
4
6
 
5
7
  ## Installation
6
8
 
@@ -15,14 +17,14 @@ cs-service 财说服务管理工具
15
17
  cs-service load [FILE] # 加载配置文件,为空时加载默认配置
16
18
  cs-service quit # 退出 cs-service
17
19
 
18
- ### Step1 加载配置
19
-
20
- $ cs-service load
21
-
22
- ### Step2 检查配置是否生效
20
+ ### Step1 检查配置是否生效
23
21
 
24
22
  $ cs-service env
25
23
 
24
+ ### Step2 加载配置
25
+
26
+ $ cs-service load
27
+
26
28
  ### Step3 如果环境设置正确,则启动项目
27
29
 
28
30
  $ cs-service start # 启动所有项目
@@ -33,10 +35,10 @@ cs-service 财说服务管理工具
33
35
 
34
36
  ## Development
35
37
 
36
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
37
-
38
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39
-
38
+ rake build
39
+ rake install
40
+ rake install:local
41
+ rake release
40
42
  ## Contributing
41
43
 
42
44
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cs-service. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
@@ -0,0 +1,39 @@
1
+ common: &default_settings
2
+ # 项目名称, web, trading_server, rest_server
3
+ app_name: web
4
+ # 是否开启puma
5
+ puma:
6
+ workers: 2 # 进程数
7
+ threads: 8 # 每个worker线程数
8
+ memory: 524288000 # 内存最大值 500*1024*1024
9
+ cpu: 50 # cpu最大值
10
+ resque:
11
+ # 是否开启resque scheduler
12
+ scheduler: true
13
+ # 是否开启resque worker
14
+ worker:
15
+ # resque pool配置
16
+ pool:
17
+ default: 2
18
+ # 是否开启sneaker
19
+ sneaker:
20
+ # 需要启动的sneaker consumer
21
+ queue: "Trading::PmsConsumer,FeedConsumer,JpushConsumer,StockRealtimeConsumer"
22
+
23
+
24
+ development:
25
+ <<: *default_settings
26
+
27
+ test:
28
+ <<: *default_settings
29
+
30
+ # Turn on the agent in production for 24x7 monitoring.
31
+ production:
32
+ <<: *default_settings
33
+
34
+ # Staging environment which behaves identically to production.
35
+ staging:
36
+ <<: *default_settings
37
+
38
+ testing:
39
+ <<: *default_settings
@@ -1,5 +1,5 @@
1
1
  module Cs
2
2
  module Service
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cs-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - wangchangming
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -105,6 +105,7 @@ files:
105
105
  - config/processes/sneaker.rb
106
106
  - config/processes/worker.rb
107
107
  - cs-service.gemspec
108
+ - examples/project.yml
108
109
  - lib/cs/service.rb
109
110
  - lib/cs/service/cli.rb
110
111
  - lib/cs/service/motd.rb