pavanyogi / automate-wordpress-deployments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

automate-wordpress-deployments

https://dzone.com/articles/how-to-automate-wordpress-deployments

Sage is Awesome - 01 - Install and Overview

https://www.youtube.com/watch?v=WwIt2C2SnUI

CI/CD steps

  1. Execute:

navigate to theme directory

cd sage

install php packages

composer validate composer install ......... 2. Execute:yarn build:production

navigate to theme directory

cd sage

install packages

yarn

Create production build

yarn build:production .......

before this step-> create 1 click wordpress install in the choosen droplet, add ssh key, do ssh login, and notedown its ip address, type its ip address in the browser and verify that wordpress is working, do login, check all themes and plugins and switch themes , see website frontend, install wp-cli.phar (https://wp-cli.org/) 3.Upload files to ubuntu-s-4vcpu-8gb-blr1-01

ignore paths: .cache-loader/ node_modules/

source path: sage Remote path: /var/www/html/wp-content/themes/sage ....... 4. Execute: sudo -u www-data -- wp theme activate sage/resources sudo -u www-data -- wp theme activate sage/resources --path=/var/www/html/

About


Languages

Language:PHP 40.5%Language:JavaScript 39.5%Language:Blade 12.9%Language:SCSS 6.3%Language:CSS 0.8%