From 1d6f52f69244d6cef0a551e3bac3f1c01b29050b Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Sun, 9 Feb 2025 17:33:40 +0300 Subject: [PATCH] init --- README.md | 14 ++++++++------ sync-prod-to-dev.sh | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3c11b3b..b285995 100644 --- a/README.md +++ b/README.md @@ -6,32 +6,34 @@ git clone https://git.askar.tv/oont/oont-dev cd oont-dev ``` -2. download Themes, plugins, themes and extract them in oont +download Themes, plugins, themes and extract them in oont ### Mac & Linux ``` -curl -o temp.zip 'https://fs.nmd.mov/p/oont/?zip' && unzip temp.zip -d oont && rm temp.zip +curl -o temp.zip 'https://fs.nmd.mov/p/oont/?zip' && unzip temp.zip -d oont && rm temp.zip && cd oont && git clone https://git.askar.tv/oont/oont-contents ``` ### Windows ``` -curl -o temp.zip 'https://fs.nmd.mov/p/oont/?zip' ; Expand-Archive temp.zip -DestinationPath oont ; Remove-Item temp.zip +curl -o temp.zip 'https://fs.nmd.mov/p/oont/?zip' ; Expand-Archive temp.zip -DestinationPath oont ; Remove-Item temp.zip; Set-Location -Path oont ; git clone https://git.askar.tv/oont/oont-contents ``` ### Manual Download ``` https://fs.nmd.mov/p/oont/?zip !!Then Extract it into oont directory inside the repo!! +inside the dir also +git clone http://git.askar.tv/oont/oont-contents ``` -3. Install docker if you dont have it +2. Install docker if you dont have it ``` docker compose up -d ``` -4. Sync +3. Sync ``` docker exec -it wp-wordpress-1 sync ``` -5. Pateience, your local wp should be at +4. Pateience, your local wp should be at ``` http://localhost:8081 ``` diff --git a/sync-prod-to-dev.sh b/sync-prod-to-dev.sh index 773ee80..03a1aab 100755 --- a/sync-prod-to-dev.sh +++ b/sync-prod-to-dev.sh @@ -20,8 +20,8 @@ # COPY THEMES AND PLUGINS #################################### echo "=== Copying Themes, plugins & uploads ===" -cp -r /var/www/oont/themes/ /var/www/html/wp-content -cp -r /var/www/oont/plugins/ /var/www/html/wp-content +cp -r /var/www/oont/oont-contents/themes/ /var/www/html/wp-content +cp -r /var/www/oont/oont-contents/plugins/ /var/www/html/wp-content cp -r /var/www/oont/uploads /var/www/html/wp-content cp -r /var/www/oont/uploads-webpc/ /var/www/html/wp-content ####################################