Skip to content

Commit 6c0061b

Browse files
committed
local tests readjusted
1 parent 1e0e3ae commit 6c0061b

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/target/
22
/vagrant-test/html/
3+
/vagrant-test/*.log
34
/vagrant-test/.vagrant/
45
/bin/
56
/.classpath

vagrant-test/Vagrantfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ VAGRANTFILE_API_VERSION = "2"
66

77
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
88
config.vm.box = "ubuntu/xenial64"
9-
# config.vm.network "private_network", type: "dhcp"
10-
config.vm.network "public_network"
11-
# config.vm.provision :shell, :path => "install.sh"
12-
# config.vm.synced_folder ".", "/var/www", owner: "www-data", group: "ubuntu"
9+
config.vm.network "private_network", type: "dhcp"
10+
config.vm.provision :shell, :path => "install.sh", :privileged => "false"
1311
config.vm.hostname = "wordpressjavatest"
1412
end

vagrant-test/install.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ fi
2525

2626
cp /vagrant/wp-cli.yml ~
2727
cd ~
28-
wp --info
2928
sudo rm -rf ${VDIR}/*
3029
sudo chown -Rh ${WHO}:${WHOG} ${VDIR}
3130
sudo chmod -R a+rwx $VDIR
3231
echo 'drop database blog' | mysql -uroot -proot
33-
wp core download
34-
wp core config
35-
wp db create
36-
wp core install
37-
wp user create testuser [email protected]
32+
sudo -u $WHO -i -- wp core download
33+
sudo -u $WHO -i -- wp core config
34+
sudo -u $WHO -i -- wp db create
35+
sudo -u $WHO -i -- wp core install
36+
sudo -u $WHO -i -- wp user create testuser [email protected]
3837
#wp plugin install wordpress-importer --activate
39-
wp media import /vagrant/Lenna.jpg
38+
sudo -u $WHO -i -- wp media import /vagrant/Lenna.jpg
4039
sudo chmod -R a+rwx $VDIR
4140
sudo service apache2 restart

0 commit comments

Comments
 (0)