Welcome to this humble repo to facilitate Woonuxt develop environment. Feel free to comment or correct...
Clone repo
git clone [email protected]:fabdao/docker-woonuxt.git
Navigate
cd docker-woonuxt
Fetch git submodule Woonuxt and Wordpres
git submodule init
git submodule update
Rename initial docker compose file for run
mv initial.docker-compose.yml docker-compose.yml
Prepare .env file
cp .env.example .env
Try to run docker
docker compose up
Unmount docker containers
docker compose down
Update permissions for DB folder ( we are still inside Docker folder)
sudo chown -R 999:999 ./db/data
sudo chmod 775 ./db/data
Open your browser to http://localhost
, normally at this point you should be able to see this screen :
Go to wordpress admin panel and reach the plugin section. From there you will be able to manually install the woonuxt-setting plugin. [ ZIP to upload is located at assets/woonuxt/woonuxt-settings.zip
]
Locate .htaccess at src/wordpress/.htaccess
and add at the bottom of the file :
php_value upload_max_filesize 256M
Locate the wordpress folder inside the docker one and try the change permission to www-data :
sudo chown -R www-data:www-data wordpress
Add
http://localhost:3000
into Front End URL parameter and don´t forget to push SAVE Button at the end of this page...
Install Wordpress importer and run it !
Import assets/sample-data/sample_products.xml
Rendez-vous for woonuxt settings section and set like so... ( maybe advances options buttons should be toggle at the upper-right of the screen)
Unmount docker container
docker compose down
Erase docker volumes
docker volume rm $(docker volume ls -q)
Reset docker file without reverse proxy
mv docker-compose.yml initial.docker-compose.yml
Enable docker file with reverse proxy
mv regular.docker-compose.yml docker-compose.yml
Copy .env from docker/woonux to src/woonuxt
cp ./docker/woonuxt/.env.example ./src/woonuxt/.env
modify GQL_HOST into .env
GQL_HOST="http://wordpress-crm/graphql"
docker compose up