capistrano-o2web-recipes 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1d33e1f3422222b0cee3e5beababaa445d28f4d
4
- data.tar.gz: 93f1c650d723e332610c2376e337812b2f4fe515
3
+ metadata.gz: fc6dbdc1760be25909a18146d763d1896e9899fa
4
+ data.tar.gz: 18753f4eda472604f656d94d4f023143651a2ffd
5
5
  SHA512:
6
- metadata.gz: 9685fb12a6de1856b937b48ba0634ccbf2e6afd0fff1cbaa3a549823bab29834809a4ec55f4c4faeade9409474c374c34e5497870592c6efe59dcce4a7e12aec
7
- data.tar.gz: 8f64fd4d03386f8eb4735e4f48b88a0f7199e14fdea9fe195da4c93b583d09c0f7f068daacec0f6031bc9bf7471533596530497745282f9c1eed4af3c7292104
6
+ metadata.gz: be158b26146005b3f7a150cd08b9d62947805e3dc6ff6f685d7c3d28d6806b2a864916ca778a081e490bb0467d99c533f8c3479fd8a2795944424a57076a4149
7
+ data.tar.gz: 326cdc761261f7d066a448186ba416596de525aa9fa69dc5f5bc8cf0b183d1e8188418d7245c02a6acdb0af77dc62710a7ff0a569c2404603719ff13c8a7f31e
data/README.md CHANGED
@@ -20,7 +20,7 @@ And then:
20
20
 
21
21
  ### Setup and usage
22
22
 
23
- Add this line to `Capfile`, after `require 'capistrano/rails/assets'`
23
+ Add this line to `Capfile`, after `require 'capistrano/rails/migrations'`
24
24
 
25
25
  require 'capistrano/o2web_recipes'
26
26
 
@@ -50,15 +50,17 @@ Configurations can be customized in your deploy file with:
50
50
  set :server, 'example.com'
51
51
  set :admin_name, 'admin'
52
52
  set :deployer_name, 'deployer'
53
+ # default to %W[system]
53
54
  set :files_public_dirs, fetch(:files_public_dirs, []).push(*%W[
54
- system
55
+ spree
55
56
  ])
57
+ # default to []
56
58
  set :files_private_dirs, fetch(:files_private_dirs, []).push(*%W[
57
59
  ])
58
60
  set :nginx_workers, 1
61
+ # default to %W[assets system]
59
62
  set :nginx_assets_dirs, fetch(:nginx_assets_dirs, []).push(*%W[
60
- assets
61
- system
63
+ spree
62
64
  ])
63
65
  set :nginx_max_body_size, '10m'
64
66
  ```
@@ -66,6 +68,5 @@ set :nginx_max_body_size, '10m'
66
68
  ### TODO
67
69
 
68
70
  1. Use stages (staging/production) to scope Nginx config file to allow multiple stages on the same server.
69
- 1. Lose the dependency to capistrano3-nginx gem.
70
71
  1. Log rotate
71
72
  1. Monit
@@ -18,7 +18,6 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_dependency "capistrano", ">= 3.1"
21
- gem.add_dependency "capistrano3-nginx", "~> 2.0"
22
21
  gem.add_dependency "yaml_db"
23
22
  gem.add_development_dependency "rake"
24
23
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module O2webRecipes
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,3 +1,5 @@
1
+ require 'erb'
2
+
1
3
  namespace :load do
2
4
  task :defaults do
3
5
  set :files_public_dirs, ['system']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-o2web-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-17 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
- - !ruby/object:Gem::Dependency
28
- name: capistrano3-nginx
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: yaml_db
43
29
  requirement: !ruby/object:Gem::Requirement