public static function setupDatabase( Event $event )
	{
		$options = $env = array();

		if( $event->isDevMode() ) {
			$options[] = '--option=setup/default/demo:1';
		} else {
			$env[] = '--env=prod';
		}

		self::executeCommand( $event, 'aimeos:setup', $options + $env );
		self::executeCommand( $event, 'aimeos:cache', $env );
	}
public static function setupDatabase( Event $event )
	{
		$options = $env = array();

		if( $event->isDevMode() ) {
			$options[] = '--option=setup/default/demo:1';
		} else {
			$env[] = '--env=prod';
		}

		self::executeCommand( $event, 'aimeos:setup', $options + $env );
		self::executeCommand( $event, 'aimeos:cache', $env );
	}
public static function setupDatabase ( Event $ event ) { $ options = $ env = array ( ) ; if ( $ event -> isDevMode ( ) ) { $ options [ ] = '--option=setup/default/demo:1' ; } else { $ env [ ] = '--env=prod' ; } self :: executeCommand ( $ event , 'aimeos:setup' , $ options + $ env ) ; self :: executeCommand ( $ event , 'aimeos:cache' , $ env ) ; }
Sets up the shop database.

@param Event $event Event instance
@throws \RuntimeException If an error occured
Sets up the shop database .