123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?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' => 'community-manage',
- // 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' => [
- 'beta' => [
- 'host' => '47.92.174.125:2345',
- 'username' => 'root',
- 'password' => '',
- 'key' => '/root/.ssh/id_rsa',
- 'keyphrase' => '',
- 'agent' => '',
- 'db_role' => true,
- ],
- 'production' => [
- 'host' => '47.92.121.231:2345',
- 'username' => 'root',
- 'password' => '',
- 'key' => '/root/.ssh/id_rsa',
- 'keyphrase' => '',
- 'agent' => '',
- 'db_role' => true,
- ],
- ],
- /*
- * 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'
- ]
- ]
- ],
- ],
- ];
|