rocket_cms 0.25.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -5
- data/lib/generators/rocket_cms/capify_generator.rb +6 -13
- data/lib/rocket_cms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f857caa9b097cb30962cabade54f1dfba733a73f94cbd77e3658a5cd282ca719
|
4
|
+
data.tar.gz: 1774de5c3b590febd0e2828bf7441a3193941e37f1b4571891890b8a13eb780d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 848e9a4f759aad59c3eae2d247da275cae14c7216f9f651d67386c890a8b350fadc851c7ded99ee96e93747dda53b57851cbb6813a1bd32c9d6e12f7edd560f6
|
7
|
+
data.tar.gz: 185fe4f1c840908ca1bd00f1879d5140407ec896c69fd90d5d568b769077094a3d217d74808ee354c8ad5cb66898a945dd8efbf311f0db451072be2567d8de53
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -136,7 +136,7 @@ or
|
|
136
136
|
gem 'hstore_translate'
|
137
137
|
```
|
138
138
|
|
139
|
-
or
|
139
|
+
or
|
140
140
|
|
141
141
|
```ruby
|
142
142
|
gem 'jsonb_translate' # requires postgresql 9.4
|
@@ -150,12 +150,9 @@ gem 'rails_admin_mongoid_localize_field'
|
|
150
150
|
|
151
151
|
### Capistrano generator
|
152
152
|
|
153
|
-
rails g rocket_cms:capify
|
153
|
+
rails g rocket_cms:capify domain_name
|
154
154
|
# (path /data/:user/app/ - rocket science default)
|
155
155
|
|
156
|
-
rails g rocket_cms:capify home unicorn_port domain_name
|
157
|
-
# (path /home/:user/:app_name/)
|
158
|
-
|
159
156
|
designed to be used together with our ansible app setup script.
|
160
157
|
|
161
158
|
### Documentation
|
@@ -2,9 +2,8 @@ require 'rails/generators'
|
|
2
2
|
|
3
3
|
module RocketCms
|
4
4
|
class CapifyGenerator < Rails::Generators::Base
|
5
|
-
argument :kind, type: :string
|
6
|
-
argument :port, type: :string
|
7
5
|
argument :domain, type: :string
|
6
|
+
argument :port, type: :string, optional: true
|
8
7
|
|
9
8
|
source_root File.expand_path('../templates', __FILE__)
|
10
9
|
|
@@ -13,24 +12,18 @@ module RocketCms
|
|
13
12
|
end
|
14
13
|
|
15
14
|
def deploy_to
|
16
|
-
|
17
|
-
"/data/#{app_name.downcase}/app"
|
18
|
-
else
|
19
|
-
"/home/#{app_name.downcase}/#{app_name.downcase}"
|
20
|
-
end
|
15
|
+
"/data/#{app_name.downcase}/app"
|
21
16
|
end
|
22
17
|
def tmp_path
|
23
|
-
|
24
|
-
"/data/#{app_name.downcase}/tmp_dump"
|
25
|
-
else
|
26
|
-
"/home/#{app_name.downcase}/tmp_dump"
|
27
|
-
end
|
18
|
+
"/data/#{app_name.downcase}/tmp_dump"
|
28
19
|
end
|
29
20
|
|
30
21
|
desc 'RocketCMS capistrano setup generator'
|
31
22
|
def install
|
32
23
|
copy_file "Capfile", "Capfile"
|
33
|
-
|
24
|
+
unless port.nil?
|
25
|
+
template "unicorn.erb", "config/unicorn/production.rb"
|
26
|
+
end
|
34
27
|
template "deploy.erb", "config/deploy.rb"
|
35
28
|
template "production.erb", "config/deploy/production.rb"
|
36
29
|
template "dl.erb", "lib/tasks/dl.thor"
|
data/lib/rocket_cms/version.rb
CHANGED