浏览代码

deploy config

caihongxingqiu 5 年之前
父节点
当前提交
c3afbb5cd9
共有 1 个文件被更改,包括 34 次插入3 次删除
  1. 34 3
      .rocketeer/config.php

+ 34 - 3
.rocketeer/config.php

@@ -30,14 +30,14 @@ return [
     ////////////////////////////////////////////////////////////////////
 
     // The default remote connection(s) to execute tasks on
-    'default'          => ['production'],
+    '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' => [
+        'beta' => [
             'host'      => '47.92.174.125:2345',
             'username'  => 'root',
             'password'  => '',
@@ -46,6 +46,28 @@ return [
             'agent'     => '',
             'db_role'   => true,
         ],
+        'production'    => [
+            'servers'   => [
+                [
+                    'host'      => '47.92.131.85:2345',
+                    'username'  => 'root',
+                    'password'  => '',
+                    'key'       => '/root/.ssh/id_rsa',
+                    'keyphrase' => '',
+                    'agent'     => '',
+                    'db_role'   => true,
+                ],
+                [
+                    'host'      => '47.92.30.243:2345',
+                    'username'  => 'root',
+                    'password'  => '',
+                    'key'       => '/root/.ssh/id_rsa',
+                    'keyphrase' => '',
+                    'agent'     => '',
+                    'db_role'   => true,
+                ]
+            ]
+        ],
     ],
 
     /*
@@ -77,7 +99,16 @@ return [
         // Stages configurations
         'stages'      => [],
         // Connections configuration
-        'connections' => [],
+        'connections' => [
+            'production'    => [
+                'remote'    => [
+                    'root_directory'    => '/data/wwwroot/uptoyo/api'
+                ],
+                'scm'   => [
+                    'branch'    => 'release'
+                ]
+            ]
+        ],
 
     ],