capistrano-postgresql 2.0.0 → 3.0.0
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/CHANGELOG.md +2 -0
- data/README.md +10 -4
- data/lib/capistrano/postgresql/version.rb +1 -1
- data/lib/capistrano/tasks/postgresql.rake +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2168ffbd411cc717cc481467336c5ddf60f6b14
|
4
|
+
data.tar.gz: 111fc809e5d5378dd771d9a873732ba2f45e607c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27eaa6cd688543c31c9699bf2e24bb4915c431044ae4f6123248e5fdad8e2ba5acbe8286a079b727cf9509bf2c153bac55cc0dc13c92b9495599fadcc729ea42
|
7
|
+
data.tar.gz: 17f848b96ef6747e7a68001d8b8b1cbe5fcb67e1c6df233a527622485b8e37d73038fccc7dddbdbc4367371ba43b8496d783fcee7bf001614865afed4f8acacc
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -25,7 +25,7 @@ Put the following in your application's `Gemfile`:
|
|
25
25
|
|
26
26
|
group :development do
|
27
27
|
gem 'capistrano', '~> 3.1'
|
28
|
-
gem 'capistrano-postgresql'
|
28
|
+
gem 'capistrano-postgresql', '~> 3.0'
|
29
29
|
end
|
30
30
|
|
31
31
|
Then:
|
@@ -39,9 +39,15 @@ the following in `Capfile` file:
|
|
39
39
|
|
40
40
|
require 'capistrano/postgresql'
|
41
41
|
|
42
|
-
|
42
|
+
Make sure the `deploy_to` path exists and has the right privileges on the
|
43
|
+
server (i.e. `/var/www/myapp`).<br/>
|
44
|
+
Or just install
|
45
|
+
[capistrano-safe-deploy-to](https://github.com/bruno-/capistrano-safe-deploy-to)
|
46
|
+
plugin and don't think about it.
|
43
47
|
|
44
|
-
|
48
|
+
To setup the server, run:
|
49
|
+
|
50
|
+
$ bundle exec cap production setup
|
45
51
|
|
46
52
|
Easy, right?
|
47
53
|
|
@@ -52,7 +58,7 @@ Check below to see what happens in the background.
|
|
52
58
|
Check here for the full capistrano deployment flow
|
53
59
|
[http://capistranorb.com/documentation/getting-started/flow/](http://capistranorb.com/documentation/getting-started/flow/).
|
54
60
|
|
55
|
-
The following tasks run
|
61
|
+
The following tasks run during the `setup` task:
|
56
62
|
|
57
63
|
* `postgresql:create_db_user`<br/>
|
58
64
|
creates a postgresql user. Password for the user is automatically generated and
|
@@ -70,9 +70,12 @@ namespace :postgresql do
|
|
70
70
|
set :linked_files, fetch(:linked_files, []).push('config/database.yml')
|
71
71
|
end
|
72
72
|
|
73
|
-
after 'deploy:started', 'postgresql:create_db_user'
|
74
|
-
after 'deploy:started', 'postgresql:create_database'
|
75
|
-
after 'deploy:started', 'postgresql:generate_database_yml'
|
76
73
|
after 'deploy:started', 'postgresql:database_yml_symlink'
|
74
|
+
end
|
77
75
|
|
76
|
+
desc 'Server setup tasks'
|
77
|
+
task :setup do
|
78
|
+
invoke 'postgresql:create_db_user'
|
79
|
+
invoke 'postgresql:create_database'
|
80
|
+
invoke 'postgresql:generate_database_yml'
|
78
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-postgresql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Sutic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|