PHP code example of madj2k / t3-surf
1. Go to this page and download the library: Download madj2k/t3-surf library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
madj2k / t3-surf example snippets
/**
* Credentials
*
* @author Steffen Kroggel <[email protected] >
* @copyright Madj2k
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
* @version 1.0.3
*/
return [
'context' => 'Production/Staging',
'projectName' => 'Example',
'deploymentPath' => '/var/www/example.com/surf',
'phpBinaryPathAndFilename' => '/usr/bin/php7.4',
'adminMail' => '[email protected] ',
'hostname' => '',
'username' => '',
'password' => '',
'port' => '',
'repositoryUrl' => 'https://github.com/Example/Example.git',
'branch' => 'staging',
'doUpgrade' => false,
'queryFileBeforeUpgrade' => '',
'queryFileAfterUpgrade' => ''
];
vm$ php ./vendor/typo3/surf/bin/surf deploy <DEPLOYMENT-FILE>
vm$ php ./vendor/typo3/surf/bin/surf deploy Staging
vm$ php ./vendor/typo3/surf/bin/surf deploy Staging -v
vm$ php ./vendor/typo3/surf/bin/surf deploy Staging -vv
vm$ php ./vendor/typo3/surf/bin/surf deploy Staging -vvv