capup 0.0.2 → 0.0.4

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: 44a3c064ccfbc1a38bff0c5d5c6cb873f9de1dda
4
- data.tar.gz: e48090690f98d6cd769dc13572aa57fa7fbf44f4
3
+ metadata.gz: 87e030bff2d72a297f79337efda72a6b950be0f4
4
+ data.tar.gz: d6373cfc10971d78dbd581549486ad6bc504f5fc
5
5
  SHA512:
6
- metadata.gz: eee5450d2c88a216ffe383b2922d3912bb4f8cefc85f28797a363395ba5c315e8e410bec813a84375f60bf7d288398a9839778d897a2ccfe7e318ec1c75afd3f
7
- data.tar.gz: f26d00ac12cae413f70d2d6df3f9e17c899cf8978daba76853c504b23a0b1e9283247c7611e7965eacff817878d9772a2ee024c6f43e11f85ef9f2b7a3681546
6
+ metadata.gz: 99bf126fec7e0f9ee7df07afcf573bb2ffdfb6488f127e5403ca213096f5058da7ec77850215f5a76cbdc896596123ee06d2325cdb6c738218c7b3a5b00eef0c
7
+ data.tar.gz: 6cb3109a59c4c7893978f4e5bbcb6d301e17e067958581f882162583dde9e5682c47582c2bf11a24be6ab3896be726a9d0d57943bdf6819a1f10d7e4146b02a3
@@ -54,9 +54,9 @@ task :install do
54
54
  File.open(gemfile, 'a') do |f|
55
55
  f.puts <<-Doc
56
56
 
57
- gem 'uwsgi'
57
+ #gem 'uwsgi'
58
58
  group :development do
59
- gem 'capup' #, github: 'cao7113/capup'
59
+ gem 'capup'
60
60
  end
61
61
  Doc
62
62
  end
@@ -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 #or ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }
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, File.expand_path('/apps/<%=appname%>')
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, File.expand_path('/apps/<%=appname%>')
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('~/<%=is_prod ? "apps" : "tmp/#{stage}"%>/<%=appname%>')
18
+ set :deploy_to, File.expand_path('<%=is_prod ? "/apps" : "~/tmp/#{stage}"%>/<%=appname%>')
19
19
  <%end%>
20
20
 
21
21
  # Extended Server Syntax
@@ -1,3 +1,3 @@
1
1
  module Capup
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - cao7113