capistrano-exfel 0.0.16 → 0.0.17
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 +4 -4
- data/README.md +2 -2
- data/lib/capistrano/exfel/co7.rb +10 -3
- data/lib/capistrano/exfel/sl6.rb +10 -3
- data/lib/capistrano/exfel/version.rb +1 -1
- data/lib/capistrano/tasks/app_home.rake +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95dd80dbaa8df5fc542124be50a2408e313c319f
|
4
|
+
data.tar.gz: 531b15f2bcd149ddceb9cf9717df87deda34769a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 213c98a64155ec999365fbd1d68ef918b4706e2d7b97d6f1efdd77f475086767471e35d430bc9d641ff3f4e3770ac7f463fc1a6cbd480912197459d777550be2
|
7
|
+
data.tar.gz: 9cce640671bc6df2e58d1d08bd8dd318a8318783dfc1d32530a2b07ae63147864fcc9e57d0c9a43220d025c587ba4d423e5a9f19138a98afe621bc1d427a1ff9
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Capistrano::Exfel
|
2
2
|
|
3
3
|
Deploys Ruby on Rails Applications in EXFEL VMs using Capistrano3 throw username/password authentication.
|
4
|
-
The standard EXFEL VMs consist of Scientific Linux 6 with Apache.
|
4
|
+
The standard EXFEL VMs consist of Scientific Linux 6 or CentOS 7 with Apache.
|
5
5
|
Installation of Phusion Passenger and RVM are also required to this gem.
|
6
6
|
|
7
7
|
## Installation
|
@@ -12,7 +12,7 @@ Add these lines to your application's Gemfile:
|
|
12
12
|
gem 'capistrano', '~> 3.4.0'
|
13
13
|
gem 'capistrano-rails', '~> 1.1.2'
|
14
14
|
gem 'capistrano-rvm', '~> 0.1.2'
|
15
|
-
gem 'capistrano-exfel', '~> 0.0.
|
15
|
+
gem 'capistrano-exfel', '~> 0.0.17'
|
16
16
|
|
17
17
|
And then execute:
|
18
18
|
|
data/lib/capistrano/exfel/co7.rb
CHANGED
@@ -7,9 +7,16 @@ require 'capistrano/deploy'
|
|
7
7
|
# Includes tasks from other gems included in your Gemfile
|
8
8
|
require 'capistrano/rvm'
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
case fetch(:rails_env).to_s
|
11
|
+
when 'production', 'test'
|
12
|
+
# We're going to use the full capistrano/rails since
|
13
|
+
# it includes the asset compilation, DB migrations and bundler
|
14
|
+
require 'capistrano/rails'
|
15
|
+
else # when 'development'
|
16
|
+
# we avoid asset precompilation in dev environment
|
17
|
+
require 'capistrano/bundler'
|
18
|
+
require 'capistrano/rails/migrations'
|
19
|
+
end
|
13
20
|
|
14
21
|
load File.expand_path('../../tasks/apache.rake', __FILE__)
|
15
22
|
load File.expand_path('../../tasks/apache_co7.rake', __FILE__)
|
data/lib/capistrano/exfel/sl6.rb
CHANGED
@@ -7,9 +7,16 @@ require 'capistrano/deploy'
|
|
7
7
|
# Includes tasks from other gems included in your Gemfile
|
8
8
|
require 'capistrano/rvm'
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
case fetch(:rails_env).to_s
|
11
|
+
when 'production', 'test'
|
12
|
+
# We're going to use the full capistrano/rails since
|
13
|
+
# it includes the asset compilation, DB migrations and bundler
|
14
|
+
require 'capistrano/rails'
|
15
|
+
else # when 'development'
|
16
|
+
# we avoid asset precompilation in dev environment
|
17
|
+
require 'capistrano/bundler'
|
18
|
+
require 'capistrano/rails/migrations'
|
19
|
+
end
|
13
20
|
|
14
21
|
load File.expand_path('../../tasks/apache.rake', __FILE__)
|
15
22
|
load File.expand_path('../../tasks/apache_sl6.rake', __FILE__)
|
@@ -84,17 +84,21 @@ namespace :app_home do
|
|
84
84
|
debug "chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
|
85
85
|
execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
|
86
86
|
|
87
|
-
# Since the cache is local to any App
|
87
|
+
# Since the cache is local to any App installation it's necessary to update permissions
|
88
88
|
app_cache_folder = release_path.join('tmp/cache')
|
89
89
|
|
90
|
-
#
|
91
|
-
debug "
|
92
|
-
execute "#{sudo_cmd}
|
90
|
+
# make sure the folder exists (won't exists if the assets are not precompiled)
|
91
|
+
debug "mkdir -p #{app_cache_folder}"
|
92
|
+
execute "#{sudo_cmd} mkdir -p #{app_cache_folder}"
|
93
93
|
|
94
94
|
# Phusion Passenger (as nobody) needs write permissions to cache folder
|
95
95
|
debug "chown -R nobody.#{fetch(:app_group_owner)} #{app_cache_folder}"
|
96
96
|
execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{app_cache_folder}"
|
97
97
|
|
98
|
+
# Give write permissions to groups
|
99
|
+
debug "chmod g+ws #{app_cache_folder}"
|
100
|
+
execute "#{sudo_cmd} chmod -Rf g+w #{app_cache_folder}"
|
101
|
+
|
98
102
|
debug '#' * 50
|
99
103
|
end
|
100
104
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-exfel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis Maia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|