Discourse_Module

Discourse management Forum software
extends Module\Support\Webapps uses Module\Support\Webapps\Traits\PublicRelocatable
Methods Summary
public
public
# plugin_status( string $hostname , string $path = '', string $plugin = NULL )
public
# uninstall_plugin( string $hostname , string $path = '', string $plugin , bool $force = false )
public
# disable_all_plugins( string $hostname , string $path = '' )
public
# next_version( string $version , string $maximalbranch = '99999999.99999999.99999999' )
Get next Discourse version

Overrides

public
# reconfigure( string $field , string $attribute , array $new , array $old = NULL )
Reconfigure a Discourse instance
public
# get_configuration( string $hostname , string $path , string|array $fields )
protected
# getAppRoot( string $hostname , string $path = '' )
Get app root for Discourse

Overrides

public
# install( string $hostname , string $path = '', array $opts = array ( ) )
Install Discourse into a pre-existing location

TODO


protected
# checkVersion( array & $options )
Additional version checks

Overrides

protected
# validateRuby( string $version = 'lts', string $user = NULL )
Verify Node LTS is installed
public
# get_version( string $hostname , string $path = '' )
Get installed version
public
# valid( string $hostname , string $path = '' )
Location is a valid Discourse install
public
# set_configuration( string $hostname , string $path , array $params = array ( ) )
protected
# launchSidekiq( string $approot , string $mode = 'production' )
Launch Sidekiq process
protected
# sidekiqRunning( string $approot )
public
# build( )
public
# restart( string $hostname , string $path = '' )
public
# install_plugin( string $hostname , string $path = '', string $plugin , string $version = 'stable' )
Install and activate plugin
public
# uninstall( string $hostname , string $path = '', string $delete = 'all' )
Get configuration from a webapp

Overrides

protected
# killSidekiq( string $approot )
public
# is_current( string $version = NULL, string $branchcomp = NULL )
Check if version is latest or get latest version

Overrides

public
# change_admin( string $hostname , string $path = '', array $fields )
Change Discourse admin credentials Common fields include: password, email, username, name
public
# get_admin( string $hostname , string $path = '' )
Get the primary admin for a WP instance
public
# update_all( string $hostname , string $path = '', string $version = NULL )
Update core, plugins, and themes atomically
public
# update( string $hostname , string $path = '', string $version = NULL )
Update Discourse to latest version
public
# get_versions( )
Get all available Discourse versions
public
# update_plugins( string $hostname , string $path = '', array $plugins = array ( ) )
Update plugins
public
# update_themes( string $hostname , string $path = '', array $themes = array ( ) )
Update Laravel themes
public
# has_fortification( string $mode = NULL )
Web application supports fortification

Overrides

public
# fortify( string $hostname , string $path = '', string $mode = 'max' )
Restrict write-access by the app

Overrides

public
# _housekeeping( )
Laravel housekeeping
public
# theme_status( string $hostname , string $path = '', string $theme = NULL )
public
# install_theme( string $hostname , string $path = '', string $theme , string $version = NULL )
public
# db_config( string $hostname , string $path = '' )
Get database configuration for Discourse
Methods inherited from Module\Support\Webapps
__construct(), getAppName(), blacklisted(), knownApps(), fortify(), getAppRoot(), valid(), getInternalName(), getDocrootUser(), _mapFiles(), buildFileMapList(), getACLFiles(), setOptions(), getOptions(), failed(), getVersionLock(), has_fortification(), unfortify(), uninstall(), getDocumentRoot(), normalizeDocumentRoot(), map(), getModule(), remapPublic(), movePrimaryDocumentRoot(), unsquash(), next_version(), is_current(), _cron(), configureSsl(), theme_status(), install_theme(), uninstall_theme(), getApnscpFunctionInterceptorFromDocroot(), hasMemoryAllowance(), hasStorageAllowance(), checkEmail(), prepareSquash(), checkVersion(), checkDocroot(), kill(), _suggestDB(), _suggestUser(), suggestPassword(), setupDatabase(), getLatestVersion(), fixRewriteBase(), removeInvalidDirectives(), download(), setInfo(), _getWebappExtraStorageDirectory()
Methods inherited from Module\Skeleton\Standard
__construct(), setUserParameters(), autoloadModule(), __wakeup(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), _resetModule(), cleanUserParameters(), query()
Methods used from Module\Support\Webapps\Traits\PublicRelocatable trait
getAppRoot()
Constants Summary
public string DEFAULT_RUBY
# '2.6.2'
public array MINIMUM_INTERPRETERS
# array ( 0 => '2.4.2', '2.2.0.beta5' => '2.5.2', '2.4.0.beta5' => '2.6.1', '2.4.0' => '2.6.5', )
public string APP_NAME
# 'Discourse'
public string DEFAULT_VERSION_LOCK
# 'major'
public string DISCOURSE_REPO
# 'https://github.com/discourse/discourse.git'
Constants inherited from Module\Support\Webapps
APPLICATION_PREF_KEY , APP_NAME , DEFAULT_VERSION_LOCK , BANNED_DIRECTIVES
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties inherited from Module\Support\Webapps
$exportedFunctions
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id
Properties used from Module\Support\Webapps\Traits\PublicRelocatable