Skip to content

Instantly share code, notes, and snippets.

@t3easy
Created July 28, 2017 06:22
Show Gist options
  • Save t3easy/a542256afd0b6406081b3f1a6f4a5114 to your computer and use it in GitHub Desktop.
Save t3easy/a542256afd0b6406081b3f1a6f4a5114 to your computer and use it in GitHub Desktop.
Deploy TYPO3 (via Surf) to METANET hosting
<?php
// The mysql socket is not accessable from the chrooted env. You have to allow TCP connection for the user from 127.0.0.1
// See https://www.metanet.ch/support/713#weitere-hinweise
if (PHP_SAPI === 'cli') {
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host'] = '127.0.0.1';
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['port'] = 3306;
}
<?php
//...
$deployment->setOption('phpBinaryPathAndFilename', '/opt/php71/bin/php');
//...
$deployment->onInitialize(function () use ($deployment, $application) {
// Remove CleanupReleasesTask atm. because `readlink` is not available
$workflow->removeTask('TYPO3\\Surf\\Task\\CleanupReleasesTask');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment