cmdeploy 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module CMDeploy
|
|
9
9
|
namespace :assets do
|
10
10
|
desc "cmdeploy: Assets precompilation"
|
11
11
|
task :precompile do
|
12
|
-
run "cd #{release_path} && #{rake} RAILS_RELATIVE_URL_ROOT
|
12
|
+
run "cd #{release_path} && #{rake} RAILS_RELATIVE_URL_ROOT=#{app_relative_root_url} RAILS_ENV=#{stage} RAILS_GROUPS=assets assets:precompile"
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -7,7 +7,7 @@ location ~ ^/<%= application %>/assets/ {
|
|
7
7
|
}
|
8
8
|
|
9
9
|
# pass request to rails app
|
10
|
-
location ~
|
10
|
+
location ~ <%= app_relative_root_url %> {
|
11
11
|
root /CHBS/apps/apps/<%= application %>/current/public;
|
12
12
|
|
13
13
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
@@ -9,6 +9,7 @@ module CMDeploy
|
|
9
9
|
set :stage, 'test'
|
10
10
|
set :nginx_conf_folder,'~/opt/nginx/conf/sites/apps.cm' # nginx app configuration folder
|
11
11
|
set :unicorn_conf_folder, '~/etc/unicorn' # unicorn configuration folder
|
12
|
+
set :app_relative_root_url, "/#{application}"
|
12
13
|
|
13
14
|
# deployment
|
14
15
|
set :user, 's_cme'
|
data/lib/cmdeploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmdeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: CM specific deployment recipes
|
15
15
|
email:
|