capistrano-forkcms 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -16
- data/lib/capistrano/forkcms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8b4c0990c9f4473ff2a104e47f03b573126778c
|
|
4
|
+
data.tar.gz: acf272f5407fd07c42b18be94d0c8ce60f059a2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 129fb6075d179fbbdc02faf22d5e50867576360d3c629ee6b08cf598f82b4d8f2dfe8923c737b83223aca7f0976b913132313b64cbfed74031a2c338679380df
|
|
7
|
+
data.tar.gz: c64f1b054c70d3124c8b97e8790ac1f8b078c2bd624112e0c2073516cade4a8d56b09c184b06ea921db71a3eb57376c2bed16afcd2908a55be56bfd4ddbda76c
|
data/README.md
CHANGED
|
@@ -43,36 +43,44 @@ Configuration options:
|
|
|
43
43
|
|
|
44
44
|
1. Create a Capfile with the content below:
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
```
|
|
47
|
+
# Load DSL and set up stages
|
|
48
|
+
require "capistrano/setup"
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
# Include default deployment tasks
|
|
51
|
+
require "capistrano/deploy"
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
require "capistrano/scm/git"
|
|
54
|
+
install_plugin Capistrano::SCM::Git
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
require "capistrano/forkcms"
|
|
56
57
|
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
|
59
|
+
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
|
|
60
|
+
```
|
|
59
61
|
|
|
60
62
|
2. Create a file called `config/deploy.rb`, with the content below:
|
|
61
63
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
```
|
|
65
|
+
set :application, "$your-application-name"
|
|
66
|
+
set :repo_url, "$your-repo-url"
|
|
64
67
|
|
|
65
|
-
|
|
68
|
+
set :keep_releases, 3
|
|
69
|
+
```
|
|
66
70
|
|
|
67
71
|
3. Create a file called `config/deploy/production.rb`, with the content below:
|
|
68
72
|
|
|
69
|
-
|
|
73
|
+
```
|
|
74
|
+
... @todo, fix this
|
|
75
|
+
```
|
|
70
76
|
|
|
71
77
|
4. Create a file called `config/deploy/staging.rb`, with the content below:
|
|
72
78
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
```
|
|
80
|
+
server "$your-server-hostname", user: "sites", roles: %w{app db web}
|
|
81
|
+
set :deploy_to, "$your-path-where-everything-should-be-deployed"
|
|
82
|
+
set :document_root, "$your-document-root"
|
|
83
|
+
```
|
|
76
84
|
|
|
77
85
|
|
|
78
86
|
## Contributing
|