capup 0.0.2 → 0.0.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87e030bff2d72a297f79337efda72a6b950be0f4
|
|
4
|
+
data.tar.gz: d6373cfc10971d78dbd581549486ad6bc504f5fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99bf126fec7e0f9ee7df07afcf573bb2ffdfb6488f127e5403ca213096f5058da7ec77850215f5a76cbdc896596123ee06d2325cdb6c738218c7b3a5b00eef0c
|
|
7
|
+
data.tar.gz: 6cb3109a59c4c7893978f4e5bbcb6d301e17e067958581f882162583dde9e5682c47582c2bf11a24be6ab3896be726a9d0d57943bdf6819a1f10d7e4146b02a3
|
|
@@ -5,10 +5,12 @@ set :application, '<%=appname%>'
|
|
|
5
5
|
set :repo_url, File.expand_path("../../.git", __FILE__) #or set :repo_url, "git@shareup:<%=appname%>"
|
|
6
6
|
|
|
7
7
|
# Default branch is :master
|
|
8
|
-
#set :branch, :master
|
|
8
|
+
#set :branch, :master
|
|
9
|
+
#ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }
|
|
10
|
+
set :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }
|
|
9
11
|
|
|
10
12
|
# Default deploy_to directory is /var/www/my_app
|
|
11
|
-
set :deploy_to,
|
|
13
|
+
set :deploy_to, '/apps/<%=appname%>'
|
|
12
14
|
|
|
13
15
|
# Default value for :scm is :git
|
|
14
16
|
set :scm, :git
|
|
@@ -34,6 +36,7 @@ set :format, :pretty
|
|
|
34
36
|
|
|
35
37
|
#set :rbenv_custom_path, '<%=`rbenv root`.chomp%>' #eg. /opt/rbenv
|
|
36
38
|
#set :rbenv_ruby, '<%=`rbenv global`.chomp%>' #eg. '2.0.0-p353'
|
|
39
|
+
set :bundle_flags, '--deployment' #' --quiet'
|
|
37
40
|
|
|
38
41
|
# Default value for keep_releases is 5
|
|
39
42
|
set :keep_releases, 3
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
<%if stage == 'online'%>
|
|
12
12
|
#Customize, override config/deploy.rb
|
|
13
13
|
set :repo_url, "https://github.com/cao7113/<%=appname%>.git"
|
|
14
|
-
set :deploy_to,
|
|
14
|
+
set :deploy_to, '/apps/<%=appname%>'
|
|
15
15
|
set :rails_env, 'production'
|
|
16
16
|
<%else%>
|
|
17
17
|
## Customize
|
|
18
|
-
set :deploy_to, File.expand_path('
|
|
18
|
+
set :deploy_to, File.expand_path('<%=is_prod ? "/apps" : "~/tmp/#{stage}"%>/<%=appname%>')
|
|
19
19
|
<%end%>
|
|
20
20
|
|
|
21
21
|
# Extended Server Syntax
|
data/lib/capup/version.rb
CHANGED