capistrano-alchemy 0.3.0 → 1.0.0
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 +15 -2
- data/capistrano-alchemy.gemspec +2 -2
- data/lib/capistrano-alchemy.rb +1 -0
- data/lib/capistrano/alchemy.rb +0 -5
- data/lib/capistrano/alchemy/version.rb +1 -1
- data/lib/capistrano/tasks/alchemy.rake +1 -7
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 684d80312257f263f4c49c0555a294d42bd65a0d
|
4
|
+
data.tar.gz: 4e0b941e723102baf911eeefd1ba18dd5744e9c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e800e509de2c5d1c3ef634d0146339bb9e32e2651ff6ae774117783ef3abd157b540d67b348c3a4a9f25b8bc36eea17c3288ea96e7a90057ebf8254bde29baa3
|
7
|
+
data.tar.gz: 51ea67118c423567d57db00a16192775ec7445c44c8d9dc8bfd7b8ac7ceac295b1700586f8d17152f46ee7e8290cdc5d7661ac50eec3c15277d6f7c4bbde7f79
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Capistrano Tasks for Alchemy CMS
|
2
2
|
|
3
|
-
|
3
|
+
Adds the Alchemy `uploads` folder to Capistranos `linked_dirs` array in order to survive deployments.
|
4
4
|
|
5
5
|
In addition, it offers several tasks to synchronize your uploads folder and your database between environments.
|
6
6
|
|
@@ -10,7 +10,7 @@ In addition, it offers several tasks to synchronize your uploads folder and your
|
|
10
10
|
Add this line to your application's Gemfile:
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
gem 'capistrano-alchemy',
|
13
|
+
gem 'capistrano-alchemy', '~> 1.0', group: :development, require: false
|
14
14
|
```
|
15
15
|
|
16
16
|
And then execute:
|
@@ -35,6 +35,19 @@ require 'capistrano/alchemy'
|
|
35
35
|
## Usage
|
36
36
|
|
37
37
|
|
38
|
+
### Upgrade Alchemy
|
39
|
+
|
40
|
+
We have a task to run the alchemy upgrader on your servers.
|
41
|
+
|
42
|
+
```shell
|
43
|
+
$ bundle exec cap staging alchemy:upgrade
|
44
|
+
```
|
45
|
+
|
46
|
+
**CAUTION:** Please be sure to run the upgrader locally before running this untested on your production system!
|
47
|
+
|
48
|
+
Cloning the production data to your local dev env is advised before running the upgrader. This can easily be done with
|
49
|
+
the next command.
|
50
|
+
|
38
51
|
### Synchronize your data
|
39
52
|
|
40
53
|
Alchemy Capistrano receipts offer much more then only deployment related tasks. We also have tasks to make your local development easier. To get a list of all receipts type:
|
data/capistrano-alchemy.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'capistrano/alchemy/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "capistrano-alchemy"
|
8
8
|
spec.version = Capistrano::Alchemy::VERSION
|
9
|
-
spec.authors = ["Martin Meyerhoff"]
|
10
|
-
spec.email = ["mamhoff@googlemail.com"]
|
9
|
+
spec.authors = ["Martin Meyerhoff", "Thomas von Deyen"]
|
10
|
+
spec.email = ["mamhoff@googlemail.com", "thomas@vondeyen.com"]
|
11
11
|
spec.summary = %q{Capistrano Tasks for AlchemyCMS.}
|
12
12
|
spec.homepage = "https://alchemy-cms.com"
|
13
13
|
spec.license = "MIT"
|
data/lib/capistrano-alchemy.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
require 'capistrano/alchemy'
|
data/lib/capistrano/alchemy.rb
CHANGED
@@ -2,10 +2,6 @@ require "capistrano/alchemy/version"
|
|
2
2
|
|
3
3
|
require 'fileutils'
|
4
4
|
require 'alchemy/tasks/helpers'
|
5
|
-
# Loading the rails app
|
6
|
-
# require './config/environment.rb'
|
7
|
-
# so we can read the current mount point of Alchemy
|
8
|
-
require 'alchemy/mount_point'
|
9
5
|
require 'capistrano/alchemy/deploy_support'
|
10
6
|
|
11
7
|
include Alchemy::Tasks::Helpers
|
@@ -13,4 +9,3 @@ include Capistrano::Alchemy::DeploySupport
|
|
13
9
|
|
14
10
|
load File.expand_path('../tasks/alchemy.rake', __FILE__)
|
15
11
|
load File.expand_path('../tasks/alchemy_capistrano_hooks.rake', __FILE__)
|
16
|
-
|
@@ -2,13 +2,7 @@ namespace :alchemy do
|
|
2
2
|
|
3
3
|
# Prepare Alchemy for deployment
|
4
4
|
task :default_paths do
|
5
|
-
set :
|
6
|
-
-> { File.join('public', Alchemy::MountPoint.get, 'pictures') }
|
7
|
-
set :linked_dirs, fetch(:linked_dirs, []) + [
|
8
|
-
"uploads/pictures",
|
9
|
-
"uploads/attachments",
|
10
|
-
fetch(:alchemy_picture_cache_path)
|
11
|
-
]
|
5
|
+
set :linked_dirs, fetch(:linked_dirs, []) + %w(uploads)
|
12
6
|
end
|
13
7
|
|
14
8
|
namespace :db do
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-alchemy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Meyerhoff
|
8
|
+
- Thomas von Deyen
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-
|
12
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: capistrano-rails
|
@@ -69,6 +70,7 @@ dependencies:
|
|
69
70
|
description:
|
70
71
|
email:
|
71
72
|
- mamhoff@googlemail.com
|
73
|
+
- thomas@vondeyen.com
|
72
74
|
executables: []
|
73
75
|
extensions: []
|
74
76
|
extra_rdoc_files: []
|