capistrano-unicorn 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Capistrano Unicorn
2
2
 
3
- Capistrano plugin that integrates Unicorn tasks into deployment script.
3
+ Capistrano plugin that integrates Unicorn tasks into capistrano deployment script.
4
4
 
5
5
  ## Installation
6
6
 
@@ -10,6 +10,14 @@ gem install capistrano-unicorn
10
10
 
11
11
  ## Usage
12
12
 
13
+ Add the gem to your ```Gemfile```:
14
+
15
+ ```ruby
16
+ group :development do
17
+ gem 'capistrano-unicorn'
18
+ end
19
+ ```
20
+
13
21
  Add unicorn plugin into your deploy.rb file.
14
22
 
15
23
  **NOTE:** Should be placed after all hooks
@@ -18,7 +26,9 @@ Add unicorn plugin into your deploy.rb file.
18
26
  require 'capistrano-unicorn'
19
27
  ```
20
28
 
21
- Place configuration file into ```config/unicorn/YOUR_ENV.rb```
29
+ This should add a unicorn server start task after ```deploy:restart```.
30
+
31
+ Unicorn configuration file should be placed under ```config/unicorn/YOUR_ENV.rb```
22
32
 
23
33
  To test if it works type:
24
34
 
@@ -28,6 +38,8 @@ cap unicorn:stop
28
38
  cap unicorn:reload
29
39
  ```
30
40
 
41
+ **NOTE:** This plugin uses bundler.
42
+
31
43
  ## Configuration options
32
44
 
33
45
  - unicorn_env — Set unicorn environment. Default to "rails_env" variable.
@@ -23,7 +23,7 @@ module CapistranoUnicorn
23
23
  config_path = "#{current_path}/config/unicorn/#{unicorn_env}.rb"
24
24
  if remote_file_exists?(config_path)
25
25
  logger.important("Starting...")
26
- run "cd #{current_path} && bundle exec unicorn_rails -c #{config_path} -E #{unicorn_env} -D"
26
+ run "cd #{current_path} && bundle exec unicorn -c #{config_path} -E #{unicorn_env} -D"
27
27
  else
28
28
  logger.important("Config file for \"#{unicorn_env}\" environment was not found at \"#{config_path}\"", "Unicorn")
29
29
  end
@@ -58,7 +58,7 @@ module CapistranoUnicorn
58
58
  logger.important("No PIDs found. Starting Unicorn server...", "Unicorn")
59
59
  config_path = "#{current_path}/config/unicorn/#{unicorn_env}.rb"
60
60
  if remote_file_exists?(config_path)
61
- run "cd #{current_path} && bundle exec unicorn_rails -c #{config_path} -E #{unicorn_env} -D"
61
+ run "cd #{current_path} && bundle exec unicorn -c #{config_path} -E #{unicorn_env} -D"
62
62
  else
63
63
  logger.important("Config file for \"#{unicorn_env}\" environment was not found at \"#{config_path}\"", "Unicorn")
64
64
  end
@@ -74,4 +74,4 @@ end
74
74
 
75
75
  if Capistrano::Configuration.instance
76
76
  CapistranoUnicorn::CapistranoIntegration.load_into(Capistrano::Configuration.instance)
77
- end
77
+ end
@@ -1,5 +1,5 @@
1
1
  module CapistranoUnicorn
2
2
  unless defined?(::CapistranoUnicorn::VERSION)
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-11 00:00:00.000000000Z
12
+ date: 2011-10-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &2154378720 !ruby/object:Gem::Requirement
16
+ requirement: &2153845960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154378720
24
+ version_requirements: *2153845960
25
25
  description: Capistrano plugin that integrates Unicorn server tasks.
26
26
  email: dan.sosedoff@gmail.com
27
27
  executables: []