capistrano-forkcms 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +55 -11
- data/capistrano-forkcms.gemspec +1 -1
- data/lib/capistrano/forkcms/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3bb3f838a9decc5e3f5abb35a9be070cb29ec62
|
4
|
+
data.tar.gz: b50cb4edf7b9bad52d0b59084051094a6eac517e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3735442b1fcc2b7219871c836528c842552eb511947c79279c694153a574881a6603dcd91cabba43c72e0fc293bf64fd099da958548ca3b8f2bef115a926b6ee
|
7
|
+
data.tar.gz: d8c1560817561229a24bf24d87fc476eb6d2e3f08f047acc7922678516d3354fb489c4c7cb39dc75cc59794541a97d0a4db137afa3e0b62b8c08709a33810a7e
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Capistrano::Forkcms
|
2
2
|
|
3
|
-
|
3
|
+
Fork CMS specific Capistrano tasks
|
4
|
+
|
5
|
+
Capistrano ForkCMS - Easy deployment of ForkCMS 5+ apps with Ruby over SSH.
|
4
6
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -16,26 +17,69 @@ And then execute:
|
|
16
17
|
|
17
18
|
$ bundle
|
18
19
|
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install capistrano-forkcms
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
Require the module in your Capfile:
|
24
|
+
|
25
|
+
require "capistrano/forkcms"
|
26
|
+
|
27
|
+
The plugin comes with two tasks:
|
28
|
+
|
29
|
+
* `forkcms:configure:composer`, which will configure the `capistrano/composer` plugin.
|
30
|
+
* `forkcms:symlink:document_root`, which will link the document_root to the current-folder.
|
31
|
+
|
32
|
+
But you won't need any of them as everything is wired automagically.
|
33
|
+
|
34
|
+
|
35
|
+
## Configuration
|
36
|
+
|
37
|
+
Configuration options:
|
38
|
+
|
39
|
+
* `:php_bin_custom_path`, this will allow you to configure a custom PHP binary, the fallback is `php`.
|
40
|
+
|
41
|
+
|
42
|
+
## How to use with a fresh Fork install
|
43
|
+
|
44
|
+
1. Create a Capfile with the content below:
|
26
45
|
|
27
|
-
|
46
|
+
# Load DSL and set up stages
|
47
|
+
require "capistrano/setup"
|
28
48
|
|
29
|
-
|
49
|
+
# Include default deployment tasks
|
50
|
+
require "capistrano/deploy"
|
30
51
|
|
31
|
-
|
52
|
+
require "capistrano/scm/git"
|
53
|
+
install_plugin Capistrano::SCM::Git
|
54
|
+
|
55
|
+
require "capistrano/forkcms"
|
56
|
+
|
57
|
+
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
58
|
+
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
|
59
|
+
|
60
|
+
2. Create a file called `config/deploy.rb`, with the content below:
|
61
|
+
|
62
|
+
set :application, "$your-application-name"
|
63
|
+
set :repo_url, "$your-repo-url"
|
64
|
+
|
65
|
+
set :keep_releases, 3
|
66
|
+
|
67
|
+
3. Create a file called `config/deploy/production.rb`, with the content below:
|
68
|
+
|
69
|
+
... @todo, fix this
|
70
|
+
|
71
|
+
4. Create a file called `config/deploy/staging.rb`, with the content below:
|
72
|
+
|
73
|
+
server "$your-server-hostname", user: "sites", roles: %w{app db web}
|
74
|
+
set :deploy_to, "$your-path-where-everything-should-be-deployed"
|
75
|
+
set :document_root, "$your-document-root"
|
76
|
+
|
32
77
|
|
33
78
|
## Contributing
|
34
79
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
80
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/tijsverkoyen/capistrano-forkcms](https://github.com/tijsverkoyen/capistrano-forkcms).
|
36
81
|
|
37
82
|
|
38
83
|
## License
|
39
84
|
|
40
85
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
data/capistrano-forkcms.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Fork CMS specific Capistrano tasks}
|
13
13
|
spec.description = %q{Capistrano ForkCMS - Easy deployment of ForkCMS 5+ apps with Ruby over SSH}
|
14
|
-
spec.homepage = "https://github.com/tijsverkoyen/capistrano-
|
14
|
+
spec.homepage = "https://github.com/tijsverkoyen/capistrano-forkcms"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-forkcms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tijs Verkoyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,7 +101,7 @@ files:
|
|
101
101
|
- lib/capistrano/forkcms/defaults.rb
|
102
102
|
- lib/capistrano/forkcms/version.rb
|
103
103
|
- lib/capistrano/tasks/forkcms.rake
|
104
|
-
homepage: https://github.com/tijsverkoyen/capistrano-
|
104
|
+
homepage: https://github.com/tijsverkoyen/capistrano-forkcms
|
105
105
|
licenses:
|
106
106
|
- MIT
|
107
107
|
metadata: {}
|