Created
July 28, 2017 06:22
-
-
Save t3easy/a542256afd0b6406081b3f1a6f4a5114 to your computer and use it in GitHub Desktop.
Deploy TYPO3 (via Surf) to METANET hosting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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