Преглед на файлове

Merge branch 'develop' of http://git.caihongxingqiu.net/rainbow/config-service into develop

duqinya преди 5 години
родител
ревизия
11b6265c78
променени са 2 файла, в които са добавени 27 реда и са изтрити 9 реда
  1. 24 6
      .rocketeer/config.php
  2. 3 3
      routes/api.php

+ 24 - 6
.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,15 @@ return [
             'agent'     => '',
             'db_role'   => true,
         ],
+        'production'    => [
+            'host'      => '47.92.30.243:2345',
+            'username'  => 'root',
+            'password'  => '',
+            'key'       => '/root/.ssh/id_rsa',
+            'keyphrase' => '',
+            'agent'     => '',
+            
+        ],
     ],
 
     /*
@@ -63,9 +72,9 @@ return [
     // to the stage or connection currently in use.
     // Per example :
     // 'stages' => array(
-    // 	'staging' => array(
-    // 		'scm' => array('branch' => 'staging'),
-    // 	),
+    //  'staging' => array(
+    //      'scm' => array('branch' => 'staging'),
+    //  ),
     //  'production' => array(
     //    'scm' => array('branch' => 'master'),
     //  ),
@@ -77,7 +86,16 @@ return [
         // Stages configurations
         'stages'      => [],
         // Connections configuration
-        'connections' => [],
+        'connections' => [
+            'production'    => [
+                'remote'    => [
+                    'root_directory'    => '/data/wwwroot/uptoyo/api'
+                ],
+                'scm'   => [
+                    'branch'    => 'release'
+                ]
+            ]
+        ],
 
     ],
 

+ 3 - 3
routes/api.php

@@ -16,7 +16,8 @@ $api = app('Dingo\Api\Routing\Router');
 $api->version('v1', [
     'namespace' => 'App\Http\Controllers',
 ], function ($api) {
-
+//升级接口
+    $api->get('upgrade', 'UpgradeController@index');
     //登录
     $api->group(['middleware' => 'chxq_jwt_auth'], function ($api) {
         $api->post('upload', 'UploadController@uploadImage');
@@ -49,8 +50,7 @@ $api->version('v1', [
 
         //储存方式列表
         $api->get('/storeType/index', 'StoreTypeController@index');
-        //升级接口
-        $api->get('upgrade', 'UpgradeController@index');
+
     });
 
     //获取某自提点