Sito di ecommerce realizzato in wordpress, in versione docker.
Non viene salvato su git l'intero sito, ma solo la customizzazione.
Il database, viene creato nella cartella ./volumes/db, mentre il sorgente directory ./srv viene impostato come /var/www/html dei container.
./bin/dup --build
docker-compose up -d --build./bin/ddown
docker-compose down./bin/dexec
docker exec -it [mysql|php|ngnix] bash
I container sono quattro:
- mysql
- php
- ngnix
- phpmyadmin
Account
- user git thesi: pieroproietti
- dbname: wordress
- user: wordpress
- pass: wordpress
chown -Rf www-data:www-data /var/www/html/
location /wordpress/{
# permalink
autoindex on;
try_files $uri $uri/ /wordpress/index.php?$args;
}
- git clone http://github.com/pieroproietti/import-romanphil in /var/www/html/WordPress
- scompattare wordpress in ./srv
- scompattare woocommerce-3.2.6 in ./srv/wordpress/wp-content/plugin
- attivare woocommerce dal browsers
- collegarsi alla macchina php e dalla directory /var/www/html
- php import/import.php
Installare:
- theme: storefront
- plugin: WooCommerce collapsing categories
- widget: wc-categories