12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- use Rocketeer\Services\Connections\ConnectionsHandler;
- return [
- // The name of the application to deploy
- // This will create a folder of the same name in the root directory
- // configured above, so be careful about the characters used
- 'application_name' => 'platform-trace',
- // Plugins
- ////////////////////////////////////////////////////////////////////
- // The plugins to load
- 'plugins' => [// 'Rocketeer\Plugins\Slack\RocketeerSlack',
- ],
- // Logging
- ////////////////////////////////////////////////////////////////////
- // The schema to use to name log files
- 'logs' => function (ConnectionsHandler $connections) {
- return sprintf('%s-%s-%s.log', $connections->getConnection(), $connections->getStage(), date('Ymd'));
- },
- // Remote access
- //
- // You can either use a single connection or an array of connections
- ////////////////////////////////////////////////////////////////////
- // The default remote connection(s) to execute tasks on
- 'default' => ['beta'],
- // The various connections you defined
- // You can leave all of this empty or remove it entirely if you don't want
- // to track files with credentials : Rocketeer will prompt you for your credentials
- // and store them locally
- 'connections' => [
- 'production' => [
- 'host' => '47.92.131.85:2345',
- 'username' => 'root',
- 'password' => '',
- 'key' => '/root/.ssh/id_rsa',
- 'keyphrase' => '',
- 'agent' => '',
- ],
- ],
- /*
- * In most multiserver scenarios, migrations must be run in an exclusive server.
- * In the event of not having a separate database server (in which case it can
- * be handled through connections), you can assign a 'db_role' => true to the
- * server's configuration and it will only run the migrations in that specific
- * server at the time of deployment.
- */
- 'use_roles' => false,
- // Contextual options
- //
- // In this section you can fine-tune the above configuration according
- // to the stage or connection currently in use.
- // Per example :
- // 'stages' => array(
- // 'staging' => array(
- // 'scm' => array('branch' => 'staging'),
- // ),
- // 'production' => array(
- // 'scm' => array('branch' => 'master'),
- // ),
- // ),
- ////////////////////////////////////////////////////////////////////
- 'on' => [
- // Stages configurations
- 'stages' => [],
- // Connections configuration
- 'connections' => [
- 'production' => [
- 'remote' => [
- 'root_directory' => '/data/wwwroot/uptoyo/api'
- ],
- 'scm' => [
- 'branch' => 'release'
- ]
- ]
- ],
- ],
- ];
|