capistrano_lazy 0.1.0 → 0.2.0

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: ca20bf1adef883df2b81aafea33ac2d97b0edbec
4
- data.tar.gz: fb5dd0cfd16bc60c2e8b2bb09392349bdeb627aa
3
+ metadata.gz: eb8c91488e837c57545dcbc53b95da9e837c3c98
4
+ data.tar.gz: 15e15bd52eb315a31299707a8e0a755e40dff1dc
5
5
  SHA512:
6
- metadata.gz: 916c2117c831d69fe7ed5daf0420ce00b6f3a2386e62edd302b883b5e10fb9f64d7ecf5f8d757c238650513d04f43b28bbf0f162b499349ed375e329e8064269
7
- data.tar.gz: 32a483f509a52e9b760145fa6e4fb2f4181cf724c37d4f9634418cabad835851cf6f39187c4dbf966af5004988fe0c1b5808f46edb74477642cd33f520664727
6
+ metadata.gz: 09182acd5ab31f524a245d9377dd7c93a89a091aef8e88259f51d70946e6d0019118254707f683a8b77b15a70e7da79e8c385ce853085379fa768190c7a04fca
7
+ data.tar.gz: a6aa234fb1419fb690d18cd7ce3630ef2f8c183e9ec680c5a911d906981fa561fbfbdd995a2ff86d99579e7d883c0c6c202d49593a09734b711c31900a83e86c
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/capistrano_lazy`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
5
 
7
6
  ## Installation
8
7
 
@@ -27,9 +26,9 @@ Or install it yourself as:
27
26
  ```
28
27
  gem 'unicorn'
29
28
  gem 'unicorn-worker-killer'
30
- gem 'capistrano', '3.1.0'
29
+ gem 'capistrano'
31
30
  gem 'capistrano-rbenv'
32
- gem 'capistrano-bundler', github: 'capistrano/bundler'
31
+ gem 'capistrano-bundler'
33
32
  gem 'capistrano-rails'
34
33
  gem "capistrano_lazy"
35
34
  ```
@@ -41,7 +40,34 @@ rake capistrano:lazy:install
41
40
  ```
42
41
 
43
42
  ```
44
- HOME -- deploy.yml
43
+ # HOME -- deploy.yml
44
+ version:
45
+ ruby: 2.3.1
46
+ rails: 5.0.0
47
+ capistrano: 3.7.1
48
+ environment: production
49
+ application: capistrano_lazy
50
+ repo_url: https://bitbucket.org/nghialv/capistrano_lazy
51
+ deploy:
52
+ directory: /var/www/capistrano_lazy
53
+ user: deploy
54
+ groupuser: dev
55
+ hosts:
56
+ - localhost
57
+ pid_file: unicorn_capistrano_lazy.pid
58
+ unicorn:
59
+ worker_processes: 4
60
+ sock_file: unicorn_capistrano_lazy.sock
61
+ pid_file: unicorn_capistrano_lazy.pid
62
+ host: localhost
63
+ port: 5889
64
+ nginx:
65
+ domains:
66
+ database:
67
+ host: localhost
68
+ name: capistrano_lazy
69
+ username: root
70
+ password:
45
71
  ```
46
72
 
47
73
  ### 3. After edit deploy.yml, run below command to generate all config file.
@@ -64,7 +90,7 @@ HOME
64
90
  ### 4. In production server, run command to setup nginx, unicorn, and deploy directory
65
91
 
66
92
  ```
67
- rake capistrano:lazy:deploy:setup
93
+ rake capistrano:lazy:deploy:install
68
94
  ```
69
95
 
70
96
  ```
@@ -83,4 +109,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
83
109
 
84
110
  ## Contributing
85
111
 
86
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capistrano_lazy.
112
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capistrano_lazy.
@@ -26,7 +26,9 @@ module CapistranoLazy
26
26
  "config/deploy.rb", {
27
27
  application: @settings.application,
28
28
  repo_url: @settings.repo_url,
29
- deploy_directory: @settings.deploy.directory
29
+ deploy_directory: @settings.deploy.directory,
30
+ capistrano_version: @settings.version.capistrano,
31
+ ruby_version: @settings.version.ruby_version
30
32
  }
31
33
  end
32
34
 
@@ -76,7 +76,8 @@ module CapistranoLazy
76
76
  application: @settings.application,
77
77
  deploy_directory: @settings.deploy.directory,
78
78
  deploy_user: @settings.deploy.user,
79
- pid_file: @settings.unicorn.pid_file
79
+ pid_file: @settings.unicorn.pid_file,
80
+ ruby_version: @settings.version.ruby
80
81
  }
81
82
  puts "\e[33mInstall\e[0m /etc/init.d/#{@settings.application}"
82
83
  `sudo mv unicorn_#{@settings.application} /etc/init.d/`
@@ -1,5 +1,5 @@
1
1
  # config valid only for Capistrano 3.1
2
- lock '3.1.0'
2
+ lock "<%= @capistrano_version %>"
3
3
 
4
4
  set :application, "<%= @application %>"
5
5
  set :repo_url, "<%= @repo_url %>"
@@ -35,7 +35,7 @@ set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public
35
35
  # set :keep_releases, 5
36
36
 
37
37
  set :rbenv_type, :user # or :system, depends on your rbenv setup
38
- set :rbenv_ruby, '2.1.0'
38
+ set :rbenv_ruby, "<%= ruby_version %>"
39
39
 
40
40
  set :bundle_flags, "--quiet --binstubs"
41
41
 
@@ -1,3 +1,7 @@
1
+ version:
2
+ ruby: 2.3.1
3
+ rails: 5.0.0
4
+ capistrano: 3.7.1
1
5
  environment: production
2
6
  application: capistrano_lazy
3
7
  repo_url: https://bitbucket.org/nghialv/capistrano_lazy
@@ -2,7 +2,7 @@ USER=<%= @deploy_user %>
2
2
  APP_NAME=<%= @application %>
3
3
  APP_PATH="<%= @deploy_directory %>"
4
4
  ENV=<%= @environment %>
5
- RBENV_RUBY_VERSION=2.1.0
5
+ RBENV_RUBY_VERSION=<%= @ruby_version %>
6
6
 
7
7
  # env
8
8
  APP_ROOT="$APP_PATH/current"
@@ -1,3 +1,3 @@
1
1
  module CapistranoLazy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_lazy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nghia Le Van
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,9 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.0
94
+ rubygems_version: 2.4.5
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Generate capistrano config file to deploy rails application
98
98
  test_files: []
99
- has_rdoc: