Commit da437d7c838e79a2274ebcad6ec55e383f199b7e
1 parent
dda1400b
Exists in
master
and in
1 other branch
Instalação de Wordpress com instalação já preexistente
Showing
4 changed files
with
16 additions
and
10 deletions
Show diff stats
Vagrantfile
... | ... | @@ -9,11 +9,6 @@ VAGRANTFILE_API_VERSION = "2" |
9 | 9 | $firstTimeScript = <<SCRIPT |
10 | 10 | cd /vagrant |
11 | 11 | composer update |
12 | -cp config/wp-config-vagrant.php src/wp-config.php | |
13 | -cp config/htaccess-vagrant src/.htaccess | |
14 | -cp config/file-remote.php src/file-remote.php | |
15 | -cp config/index-vagrant.php src/index.php | |
16 | -rm -f src/wp/index.php | |
17 | 12 | npm install |
18 | 13 | ./node_modules/.bin/gulp |
19 | 14 | apt-get install -y subversion |
... | ... | @@ -28,10 +23,6 @@ bunzip2 db.sql.bz2 |
28 | 23 | mysql --user=root --password=root -h 127.0.0.1 participacao < /vagrant/db/db.sql |
29 | 24 | bzip2 -9 db.sql |
30 | 25 | |
31 | -cd /vagrant/src | |
32 | -ln -s wp/wp-admin wp-admin | |
33 | -ln -s wp/wp-includes wp-includes | |
34 | - | |
35 | 26 | SCRIPT |
36 | 27 | |
37 | 28 | $updateServices = <<SCRIPT | ... | ... |
composer.json
... | ... | @@ -68,5 +68,11 @@ |
68 | 68 | "src/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"], |
69 | 69 | "src/wp-content/themes/{$name}/": ["type:wordpress-theme"] |
70 | 70 | } |
71 | + }, | |
72 | + "scripts": { | |
73 | + "pre-install-cmd": "/bin/bash ./pre-update.sh", | |
74 | + "pre-update-cmd": "/bin/bash ./pre-update.sh", | |
75 | + "post-update-cmd": "/bin/bash ./post-update.sh", | |
76 | + "post-update-cmd": "/bin/bash ./post-update.sh" | |
71 | 77 | } |
72 | 78 | -} |
79 | +} | |
73 | 80 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,7 @@ |
1 | +cp config/wp-config-vagrant.php src/wp-config.php | |
2 | +cp config/htaccess-vagrant src/.htaccess | |
3 | +cp config/file-remote.php src/file-remote.php | |
4 | +cp config/index-vagrant.php src/index.php | |
5 | +rm -f src/wp/index.php | |
6 | +ln -s wp/wp-admin src/wp-admin | |
7 | +ln -s wp/wp-includes src/wp-includes | |
0 | 8 | \ No newline at end of file | ... | ... |