westarete-capistrano-helpers 0.1.0 → 0.1.1
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.
- data/README.rdoc +28 -6
- data/VERSION +1 -1
- data/capistrano-helpers.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -105,18 +105,40 @@ You can override the location of the configuration file by setting the
|
|
105
105
|
|
106
106
|
set :preflight_config, 'somewhere/else.yml'
|
107
107
|
|
108
|
-
===
|
108
|
+
=== shared
|
109
109
|
|
110
110
|
During deployment, this helper replaces each of the given paths with a
|
111
|
-
symbolic link that points to the same path under shared
|
112
|
-
This is useful for setting up
|
113
|
-
|
114
|
-
|
111
|
+
symbolic link that points to the same path under the "shared" directory on the
|
112
|
+
server. This is useful for setting up files and directories that contain
|
113
|
+
data that should persist across deployments (uploads, for example).
|
114
|
+
|
115
|
+
After requiring this helper, set the paths to be symlinked using the
|
116
|
+
:shared variable:
|
117
|
+
|
118
|
+
set :shared, %w{
|
119
|
+
public/uploads
|
120
|
+
public/downloads/huge_files
|
121
|
+
}
|
122
|
+
|
123
|
+
This will create two symbolic links on the production server:
|
124
|
+
|
125
|
+
#{release_path}/public/uploads -> #{shared_path}/public/uploads
|
126
|
+
#{release_path}/public/downloads/huge_files -> #{shared_path}/public/downloads/huge_files
|
127
|
+
|
128
|
+
=== privates
|
129
|
+
|
130
|
+
This works much like the shared helper above, except the symbolic link will
|
131
|
+
point to the same path under "shared/private" on the server. This allows you
|
132
|
+
to set special permissions on that directory for keeping particularly
|
133
|
+
sensitive files safe, such as those that contain passwords or encryption keys.
|
115
134
|
|
116
135
|
After requiring this helper, set the paths to be symlinked using the
|
117
136
|
:privates variable:
|
118
137
|
|
119
|
-
set :privates,
|
138
|
+
set :privates, %w{
|
139
|
+
config/database.yml
|
140
|
+
config/session_secret.txt
|
141
|
+
}
|
120
142
|
|
121
143
|
This will create two symbolic links on the production server:
|
122
144
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/capistrano-helpers.gemspec
CHANGED