[Neos] Set Context to Production

Carsten Bleicker carsten at bleicker.de
Fri Nov 14 18:20:21 CET 2014


Had also several Problems on Jweiland Servers.
The DB was not createt with utf8-unicode.
Did you try to run cache clearing with upper case context?
FLOW_CONTEXT=Production ./flow flow:cache:flush --force

My index.php looks like this:
$rootPath = isset($_SERVER['FLOW_ROOTPATH']) ? $_SERVER['FLOW_ROOTPATH'] : FALSE;
if ($rootPath === FALSE && isset($_SERVER['REDIRECT_FLOW_ROOTPATH'])) {
	$rootPath = $_SERVER['REDIRECT_FLOW_ROOTPATH'];
}
if ($rootPath === FALSE) {
	$rootPath = dirname(__FILE__) . '/../';
} elseif (substr($rootPath, -1) !== '/') {
	$rootPath .= '/';
}

putenv ("FLOW_REWRITEURLS=1"); 
putenv ("FLOW_CONTEXT=Production");

require($rootPath . 'Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Bootstrap.php');

$context = getenv('FLOW_CONTEXT') ?: (getenv('REDIRECT_FLOW_CONTEXT') ?: 'Development');
$bootstrap = new \TYPO3\Flow\Core\Bootstrap($context);
$bootstrap->run();


----------------------

Carsten Bleicker
Wülfingstraße 1
42477 Radevormwald

E-Mail:	carsten at bleicker.de
Web:	www.bleicker.de
Twitter:	@carstenbleicker
Jabber:	cbleicker at jabber.ccc.de
Telefon:	+49 (0)171-2690845

Am 14.11.2014 um 18:08 schrieb Maxi milian <info at maxguz.de>:

> Cache clearing does not solve the problem :/
> 
> How could I check If I added the box configuration just to the dev settings only?
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos



More information about the Neos mailing list