بدون توضیح

Girish Ramakrishnan 9bf086af7d Version 2.6.1 5 سال پیش
apache 3c2153fc20 Dynamically determine concurrency based on memory 7 سال پیش
screenshots b78cbb7269 add screenshots 7 سال پیش
test 915cba816c login to load the dashboard 5 سال پیش
.dockerignore b78cbb7269 add screenshots 7 سال پیش
.gitignore 060d98c473 Add ignore files 9 سال پیش
CHANGELOG f130844157 Version 2.6.1 5 سال پیش
CloudronManifest.json f130844157 Version 2.6.1 5 سال پیش
DESCRIPTION.md 51c92bc08f Update description 6 سال پیش
Dockerfile 1136addfd5 Add wp-snapshots folder to make duplicator work 5 سال پیش
LICENSE 0344a63b7f Add MIT license 8 سال پیش
POSTINSTALL.md 0ac68cae54 Fixup wording 6 سال پیش
README.md 9e540c7b16 Add note on memory limit 7 سال پیش
cron.sh 826d5f02e1 Use www-data user instead of cloudron 6 سال پیش
logo.png e2eeec9e20 rename icon.png to logo.png 8 سال پیش
start.sh 71382b8d86 Use manifest v2 5 سال پیش
wp-config.php.template d50d714ddb Remove fix for plugin since upstream author fixed it 7 سال پیش

README.md

Wordpress Cloudron App

This repository contains the Cloudron app package source for Wordpress.

Installation

Install

or using the Cloudron command line tooling

cloudron install --appstore-id org.wordpress.cloudronapp

Building

The app package can be built using the Cloudron command line tooling.

cd wordpress-app

cloudron build
cloudron install

Testing

The e2e tests are located in the test/ folder and require nodejs. They are creating a fresh build, install the app on your Cloudron, perform tests, backup, restore and test if the posts are still ok.

cd wordpress-app/test

npm install
USERNAME=<cloudron username> PASSWORD=<cloudron password> mocha --bail test.js

Debugging

The site_url() will always be the location where you can reach the site by tacking on /wp-admin on the end, while home_url() would not reliably be this location.

Put this in wp-config.php for debugging

 // Enable WP_DEBUG mode
define('WP_DEBUG', true);

// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);

// Disable display of errors and warnings 
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define('SCRIPT_DEBUG', true);

if ( true === WP_DEBUG ) {
    if ( is_array( $log ) || is_object( $log ) ) {
        error_log( print_r( $log, true ) );
    } else {
        error_log( $log );
    }
}

To enable debug in authLdap: set Debug to true in ldapConfig in start.sh

LDAP Plugin

Various LDAP plugins were tested when this app was made.

Memory

The default PHP memory_limit is used - 128MB.

WP_MEMORY_LIMIT is the default (40MB). WP_MAX_MEMORY_LIMIT (admin pages) is also default (50MB).

Apache configuration

MaxConnectionsPerChild is 0 by default - When to recycle
MaxRequestWorkers     150 - Concurrent workers after which requests are queued