Update manifest.yml
parent
07dae76a8a
commit
d7a9e7f4f2
43
manifest.jps
43
manifest.jps
|
@ -1,43 +0,0 @@
|
|||
type: update
|
||||
name: Relay
|
||||
id: relay
|
||||
description: Relay is a Redis client for WordPress that improves Redis performance by two orders of magnitude
|
||||
envName: ${settings.envName}
|
||||
|
||||
|
||||
targetNodes:
|
||||
nodeGroup: 'cp'
|
||||
|
||||
|
||||
onInstall:
|
||||
- cmd [cp]: |-
|
||||
|
||||
curl -fsS http://example.com/script.sh | /bin/bash -s arg1 arg2
|
||||
|
||||
sed -i 's,^memory_limit.*$,memory_limit=256M,' /usr/local/lsws/lsphp/etc/php.ini
|
||||
cd /usr/local/lsws/lsphp/etc/php.d
|
||||
sed -i 's,^opcache.enable.*$,opcache.enable=1,' 10-opcache.ini
|
||||
sed -i 's,^opcache.memory_consumption.*$,opcache.memory_consumption=256,' 10-opcache.ini
|
||||
sed -i 's,^opcache.interned_strings_buffer.*$,opcache.interned_strings_buffer=64,' 10-opcache.ini
|
||||
sed -i 's,^;extension=imagick.so.*$,extension=imagick.so,' 40-imagick.ini
|
||||
sed -i 's,^;extension=gd.so.*$,extension=gd.so,' 20-gd.ini
|
||||
sudo yum -y install epel-release
|
||||
sudo yum -y localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
|
||||
sudo yum -y install ffmpeg ffmpeg-devel
|
||||
user: root
|
||||
|
||||
- api [cp]: environment.control.RestartNodes
|
||||
|
||||
- cmd [cp]: |-
|
||||
cd /var/www/webroot/ROOT
|
||||
#disable litespeed object cache (not entire plugin)
|
||||
wp plugin install redis-cache --activate
|
||||
wp config set WP_REDIS_IGNORED_GROUPS "['comment','counts','plugins','themes','wc_session_id','learndash_reports','learndash_admin_profile','bp_messages','bp_messages_threads']" --raw
|
||||
wp config set WP_REDIS_CLIENT 'relay'
|
||||
wp config set WP_REDIS_SCHEME 'unix'
|
||||
wp config set WP_REDIS_IGBINARY true --raw
|
||||
wp config set WP_REDIS_PATH '/var/run/redis/redis.sock'
|
||||
wp config set WP_REDIS_PORT 0 --raw
|
||||
wp config set WP_REDIS_DATABASE 0 --raw
|
||||
wp redis enable
|
||||
wp cache flush
|
|
@ -0,0 +1,18 @@
|
|||
type: update
|
||||
name: Relay
|
||||
id: relay
|
||||
description: Relay is a Redis client for WordPress that improves Redis performance by two orders of magnitude
|
||||
envName: ${settings.envName}
|
||||
|
||||
targetNodes:
|
||||
nodeGroup: 'cp'
|
||||
|
||||
onInstall:
|
||||
- cmd [cp]: |-
|
||||
curl -fsS https://deploy-proxy.mightybox.io/addons/relay/raw/branch/main/relay-install.sh | /bin/bash -s
|
||||
user: root
|
||||
|
||||
- api [cp]: environment.control.RestartNodes
|
||||
|
||||
- cmd [cp]: |-
|
||||
curl -fsS https://deploy-proxy.mightybox.io/addons/relay/raw/branch/main/ocp-install.sh | /bin/bash -s
|
Loading…
Reference in New Issue