|
@@ -0,0 +1,84 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use Rocketeer\Services\Connections\ConnectionsHandler;
|
|
|
+
|
|
|
+return [
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 'application_name' => 'cms-manage',
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 'plugins' => [
|
|
|
+ ],
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 'logs' => function (ConnectionsHandler $connections) {
|
|
|
+ return sprintf('%s-%s-%s.log', $connections->getConnection(), $connections->getStage(), date('Ymd'));
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 'default' => ['production'],
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 'connections' => [
|
|
|
+ 'production' => [
|
|
|
+ 'host' => '47.92.174.125: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,
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 'on' => [
|
|
|
+
|
|
|
+
|
|
|
+ 'stages' => [],
|
|
|
+
|
|
|
+ 'connections' => [],
|
|
|
+
|
|
|
+ ],
|
|
|
+
|
|
|
+];
|