Auto copy of themes on build
This commit is contained in:
parent
55903dcc3c
commit
17a47c86a9
6 changed files with 30 additions and 12 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
@ -1,11 +1,2 @@
|
|||
.vagrant
|
||||
.DS_Store
|
||||
src/index.php
|
||||
src/plugins/hello.php
|
||||
src/plugins/index.php
|
||||
src/plugins/akismet
|
||||
|
||||
src/themes/index.php
|
||||
src/themes/twentyfourteen
|
||||
src/themes/twentyfifteen
|
||||
src/themes/twentysixteen
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Wordpress image which loads content folder
|
||||
FROM wordpress
|
||||
|
||||
ADD src /var/www/html/wp-content/
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -14,7 +14,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
config.hostsupdater.remove_on_suspend = true
|
||||
|
||||
config.vm.provision :docker
|
||||
config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", run: "always"
|
||||
config.vm.provision :docker_compose, yml: "/vagrant/compose-prod.yml", run: "always"
|
||||
|
||||
# Fix for slow external network connections
|
||||
config.vm.provider :virtualbox do |vb|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
web:
|
||||
image: wordpress
|
||||
build: .
|
||||
links:
|
||||
- mysql
|
||||
environment:
|
14
compose-prod.yml
Normal file
14
compose-prod.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
web:
|
||||
build: .
|
||||
links:
|
||||
- mysql
|
||||
environment:
|
||||
- WORDPRESS_DB_PASSWORD=password
|
||||
ports:
|
||||
- 80:80
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=password
|
||||
- MYSQL_DATABASE=wordpress
|
9
src/.gitignore
vendored
Normal file
9
src/.gitignore
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
index.php
|
||||
plugins/hello.php
|
||||
plugins/index.php
|
||||
plugins/akismet
|
||||
|
||||
themes/index.php
|
||||
themes/twentyfourteen
|
||||
themes/twentyfifteen
|
||||
themes/twentysixteen
|
Loading…
Reference in a new issue