Pārlūkot izejas kodu

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

zhaomn 3 gadi atpakaļ
vecāks
revīzija
a6b8cb1d56
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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: