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

【CHG】设置环境程序启动时的变量

zhaomn преди 3 години
родител
ревизия
a6b8cb1d56
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      .drone.yml
  2. 1 0
      .drone_prod.yml

+ 1 - 1
.drone.yml

@@ -58,8 +58,8 @@ steps:
       debug: true
       script:
         - export PATH=/usr/local/bin:$PATH
-        - export LANG=“en_US.UTF-8”
         - echo $PATH
+        - export LANG="en_US.UTF-8"
         - pkill -9 java
         - nohup java -jar /www/wwwroot/railway.iamsee.com/release/railway-admin/target/railway-admin.jar --spring.profiles.active=dev -Ddruid.mysql.usePingMethod=false > /www/wwwroot/railway.iamsee.com/out.log 2>&1 &
 trigger:

+ 1 - 0
.drone_prod.yml

@@ -62,6 +62,7 @@ steps:
       script:
         - export PATH=/usr/local/bin:$PATH
         - echo $PATH
+        - export LANG="en_US.UTF-8"
         - pkill -9 java
         - nohup java -jar /www/wwwroot/api.svstrong.com/release/railway-admin/target/railway-admin.jar --spring.profiles.active=prod > /www/wwwroot/api.svstrong.com/out.log 2>&1 &
 trigger: