bedrock-capistrano-mysql 0.0.3 → 0.0.4
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 +7 -0
- data/bedrock-capistrano-mysql.gemspec +1 -1
- data/lib/capistrano/mysql.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: c599593e0b2715ebd83601323698b22a168b7ba0
|
4
|
+
data.tar.gz: 904b74cdd6f05e6c9c5ef981e4c9e30e1defe3b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf9302fabba7095415221f0face69a321b05d34a65b9dec0be86330e3094f60ceb9047159e3ead69bd9bf7d2181ce2dd5a48d37e94eb5eb2e6ca8fc98b841735
|
7
|
+
data.tar.gz: 390f82f71f71b8ccd475de07c3fb1674463683d28b53189d7ef94d94d184640b8db5133a63f7228135273fe1d51552729fced3c01dadad9cb09f587359021cbd
|
data/README.md
CHANGED
@@ -16,6 +16,13 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install bedrock-capistrano-mysql
|
18
18
|
|
19
|
+
You need to add two lines to your local .env file:
|
20
|
+
|
21
|
+
```
|
22
|
+
VAGRANT_PATH=~/path-to-bedrock-ansible
|
23
|
+
VAGRANT_SITE_NAME=site-name
|
24
|
+
```
|
25
|
+
|
19
26
|
You also need to add the line VAGRANT_PATH to your local .env file, pointing to your local `bedrock-ansible` project. You also to keep an .env-file for each environment. Meaning you need .env for your local environment, and one for each additional environment you want to work with – i.e. .env.staging, .env.production and so on...
|
20
27
|
|
21
28
|
## Usage
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'bedrock-capistrano-mysql'
|
6
|
-
spec.version = '0.0.
|
6
|
+
spec.version = '0.0.4'
|
7
7
|
spec.authors = ['Fredrik Sundström']
|
8
8
|
spec.email = ['fredrik.sundstrom@norkay.se']
|
9
9
|
spec.description = %q{MySQL tasks for roots/bedrock, using Capistrano 3.x}
|
data/lib/capistrano/mysql.rb
CHANGED
@@ -46,7 +46,7 @@ namespace(:mysql) do
|
|
46
46
|
desc "Change the urls in the MySQL backup file"
|
47
47
|
task :change_url do
|
48
48
|
on roles(:db) do
|
49
|
-
system "cd ..; cd #{LOCAL_ENV['VAGRANT_PATH']}; vagrant ssh -c 'cd /srv/www/#{LOCAL_ENV['
|
49
|
+
system "cd ..; cd #{LOCAL_ENV['VAGRANT_PATH']}; vagrant ssh -c 'cd /srv/www/#{LOCAL_ENV['VAGRANT_SITE_NAME']}/current; wp search-replace \'#{REMOTE_ENV['WP_HOME']}\' \'#{LOCAL_ENV['WP_HOME']}\''"
|
50
50
|
puts "Changed urls!"
|
51
51
|
end
|
52
52
|
end
|