capistrano-simpledeploy 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +76 -1
- data/capistrano-simpledeploy.gemspec +1 -1
- data/lib/capistrano-simpledeploy.rb +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a70a00ca3c0efe8e63bf2729335ab202ccaffb2
|
4
|
+
data.tar.gz: 73a99131c6c18442558d4dd803df6e7f89359437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a388bcbc901357b9064a79144d3617bebf16fa402a7fb6b73b8908db0396cd62b15f9c693ed2acb7570063d3eb4e59be69266bf3b3813bd1d222c9b3ebb7693a
|
7
|
+
data.tar.gz: ecc6eaa8240c6f6baaf726173877482748f074ef9cd8ad6d4cd8ae0c02c3cfa4645a9360787d3c9763b53bcfe1b2760bb50032ded932d67e9ff8c3e854c612f9
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,78 @@
|
|
1
1
|
### Capistrano Single Deploy
|
2
2
|
|
3
|
-
A Capistrano 3 extension to handle single version deploys
|
3
|
+
A Capistrano 3 extension to handle single version deploys, primarily aimed at a LAMP stack.
|
4
|
+
|
5
|
+
#### No Releases / Symlinks
|
6
|
+
|
7
|
+
The module is designed as a drop-in replacement for the standard capistrano/deploy tasks. You can still type `cap deploy` but you can get your deploy working from a single `Capfile` with no need to use the standard staging system.
|
8
|
+
|
9
|
+
*Note* If you are doing more complex delpoys then you are much better sticking with the standard tasks, this package is ideal as a replacement for deploying by hand, especially where you need to deploy to a single location, with a single stage and don't want to maintain multiple releases (and by extension don't need to rollback your releases).
|
10
|
+
|
11
|
+
|
12
|
+
#### The Quick-Start Guide
|
13
|
+
|
14
|
+
Step 1: You need a `Capfile` in the root of your project. Make it look something like this:
|
15
|
+
|
16
|
+
```
|
17
|
+
# Include the Capistrano Dependencies
|
18
|
+
require 'rubygems'
|
19
|
+
require 'bundler/setup'
|
20
|
+
require 'capistrano/setup'
|
21
|
+
require 'capistrano/simpledeploy'
|
22
|
+
|
23
|
+
|
24
|
+
# Modify these settings to connect to your server and Git repo
|
25
|
+
set :application, "yourapp"
|
26
|
+
set :deploy_to, "."
|
27
|
+
set :repo_url, "git@github.com:<your repo details>"
|
28
|
+
|
29
|
+
### Default stage - this is required
|
30
|
+
set :stage, "production"
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
task :production do
|
35
|
+
set :branch, "master"
|
36
|
+
|
37
|
+
server 'yourserver.com', roles: %w{web},
|
38
|
+
ssh_options: {
|
39
|
+
user: 'yoursshuser',
|
40
|
+
password: 'yoursecretpassword'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
Step 2: You need a Gemfile to define the capistrano dependencies. Make `Gemfile` in the root of your project and add the following:
|
46
|
+
|
47
|
+
```
|
48
|
+
source 'https://rubygems.org'
|
49
|
+
|
50
|
+
gem 'capistrano', '~> 3.1'
|
51
|
+
gem 'capistrano-simpledeploy'
|
52
|
+
```
|
53
|
+
|
54
|
+
Step 3: Run `bundle` from the command line in the root directory of your project. You should get an output like the following:
|
55
|
+
|
56
|
+
```
|
57
|
+
Fetching gem metadata from https://rubygems.org/.......
|
58
|
+
Resolving dependencies...
|
59
|
+
Using rake (10.1.1)
|
60
|
+
Using i18n (0.6.9)
|
61
|
+
Using net-ssh (2.8.0)
|
62
|
+
Using net-scp (1.1.2)
|
63
|
+
Using tins (1.0.0)
|
64
|
+
Using term-ansicolor (1.3.0)
|
65
|
+
Using sshkit (1.3.0)
|
66
|
+
Using capistrano (3.1.0)
|
67
|
+
Using capistrano-bundle (0.0.4)
|
68
|
+
Using capistrano-compose (0.0.20)
|
69
|
+
Using capistrano-simplegit (0.1.1)
|
70
|
+
Using capistrano-simpledeploy (0.0.4)
|
71
|
+
Using bundler (1.5.3)
|
72
|
+
Your bundle is complete!
|
73
|
+
```
|
74
|
+
|
75
|
+
Step 4: Now when you want to deploy, you can just type: `cap production deploy`
|
76
|
+
|
77
|
+
|
78
|
+
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-simpledeploy'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.5'
|
8
8
|
spec.authors = ["Ross Riley"]
|
9
9
|
spec.email = ["riley.ross@gmail.com"]
|
10
10
|
spec.description = %q{An extension to handle single version deploys for Capistrano 3.x}
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-simpledeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- .gitignore
|
105
105
|
- README.md
|
106
106
|
- capistrano-simpledeploy.gemspec
|
107
|
+
- lib/capistrano-simpledeploy.rb
|
107
108
|
- lib/capistrano/simpledeploy.rb
|
108
109
|
- lib/capistrano/tasks/simpledeploy.rake
|
109
110
|
homepage: https://github.com/rossriley/capistrano-single-deploy
|