Kaynağa Gözat

更改admin配置

abiao 5 yıl önce
ebeveyn
işleme
ee13e10225
4 değiştirilmiş dosya ile 18 ekleme ve 20 silme
  1. 3 6
      config/config.yml
  2. 4 4
      config/database.yml
  3. 10 9
      config/ngx_test.conf
  4. 1 1
      run_unicorn.sh

+ 3 - 6
config/config.yml

@@ -1,10 +1,7 @@
 development:
   root_path:  /opt/apps/statement/admin
-  admin_host: http://tstateadmin.d5c360.com
-  # admin_host: http://localhost:3000
+  admin_host: http://stateadmin.hiwavo.com
   wx_host: http://
-  # api_host: http://tapi.d5c360.com
-  # api_host: http://tapi.d5c360.com
   api_host: http://
   new_api_host: http://
 
@@ -16,8 +13,8 @@ development:
   ali_oss_data_center: oss-cn-shenzhen
 
 test:
-  root_path:  /opt/apps/statement/admin
-  admin_host: http://tstateadmin.d5c360.com
+  root_path:  /home/rails/fohow/state_admin
+  admin_host: http://stateadmin.hiwavo.com
   wx_host: http://
   api_host: http://
   new_api_host: http://

+ 4 - 4
config/database.yml

@@ -12,11 +12,11 @@ development:
   adapter: mysql2
   encoding: utf8
   reconnect: false
-  database: d5c_statement
+  database: fohow_statement
   pool: 5
-  username: d5c
-  password: D5ctesting
-  host: d5ctestingdb.mysql.rds.aliyuncs.com
+  username: root
+  password: fohow123!@#
+  host: 127.0.0.1
 
 # Warning: The database defined as "test" will be erased and
 # re-generated from your development database when you run "rake".

+ 10 - 9
config/ngx_test.conf

@@ -1,21 +1,22 @@
 server {
-    listen 80;
+    listen 8079;
     client_max_body_size 4G;
-    server_name tstateadmin.d5c360.com;
+    server_name stateadmin.hiwavo.com;
     #keepalive_timeout 5;
-    access_log  /opt/apps/statement/admin/log/ngx_access.log  main;
-    error_log   /opt/apps/statement/admin/log/ngx_error.log;
-   
+    access_log  /home/rails/fohow/state_admin/log/ngx_access.log  main;
+    error_log   /home/rails/fohow/state_admin/log/ngx_error.log;
+
     error_page 500 502 503 504 /50x.html;
     location = /500.html {
-        root /opt/apps/statement/admin/public;
+        root /home/rails/fohow/state_admin/public;
     }
     error_page 404 /404.html;
     location = /404.html {
-        root /opt/apps/statement/admin/public;
+        root /home/rails/fohow/state_admin/public;
     }
 
-    root /opt/apps/statement/admin/public;
+
+    root /home/rails/fohow/state_admin/public;
 
     location / {
         #allow 113.106.106.3;
@@ -26,7 +27,7 @@ server {
         proxy_set_header  Host  $host;
         proxy_set_header  X-Real-IP  $remote_addr;
         proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;
-        proxy_pass http://127.0.0.1:5959;
+        proxy_pass http://127.0.0.1:6874;
     }
 
     # static resource routing - both assets folder and favicon.ico

+ 1 - 1
run_unicorn.sh

@@ -7,7 +7,7 @@ set -e
 TIMEOUT=${TIMEOUT-60}
 APP_ROOT=`pwd`
 PID=$APP_ROOT/tmp/pids/unicorn.pid
-PORT=5959
+PORT=6874
 #MODE=production
 MODE=development
 #MODE="test"