Browse Source

更新提示语

ff 3 years ago
parent
commit
a48cfd4c2b
3 changed files with 3 additions and 4 deletions
  1. 1 2
      heroku/startup.sh
  2. 1 1
      resources/lang/en.php
  3. 1 1
      resources/lang/zh.php

+ 1 - 2
heroku/startup.sh

@@ -8,10 +8,9 @@
 set -e
 
 echo '[Info] 检测到你当前在 Heroku 环境运行容器,此环境依赖外部请求触发脚本运行,请自行前往 https://uptimerobot.com 配置心跳任务'
+echo '[Info] 由于 Heroku 对 cron 的支持不友好,故当前脚本只能通过请求 url 触发执行'
 echo '[Info] 更多部署手顺请参考文档:https://github.com/luolongfei/freenom'
 
-php run
-
 # 替换端口变量
 envsubst '\$PORT' < /app/nginx.template.conf > /app/nginx.conf
 

+ 1 - 1
resources/lang/en.php

@@ -32,7 +32,7 @@ return [
         '100006' => 'Execution error: <red>%s</red>',
         '100007' => 'Cloud function executed successfully.',
         '100008' => 'Cloud function execution failed.',
-        '100009' => 'Your runtime environment is a cloud function or Heroku, all environment variables will be read directly from the environment, and those variables not found in the environment will be read directly from the .env.example file',
+        '100009' => 'All environment variables will be read directly from the environment, and those variables not found in the environment will be read directly from the .env.example file, since the current running environment is not a normal VPS',
         '100010' => 'If it is in the Tencent cloud function, you can refer here to modify or add environment variables without rebuilding: https://github.com/luolongfei/freenom/blob/main/resources/screenshot/scf03.png',
         '100011' => 'If it is in Aliyun cloud function, you can directly edit the environment variable at [Function Details] -> [Function Configuration] -> [Environment Information]',
         '100012' => 'Because you did not turn on the upgrade alert feature, you will not be notified when a new version is available. Change the value of NEW_VERSION_DETECTION in the .env file to 1 to turn the feature back on.',

+ 1 - 1
resources/lang/zh.php

@@ -32,7 +32,7 @@ return [
         '100006' => '执行出错:<red>%s</red>',
         '100007' => '云函数执行成功。',
         '100008' => '云函数执行失败。',
-        '100009' => '检测到运行环境为 云函数 或 Heroku,所有环境变量将直接从环境中读取,环境中找不到的变量,则直接从 .env.example 文件中读取',
+        '100009' => '检测到当前运行环境非普通 VPS,故所有环境变量将直接从环境中读取,环境中找不到的变量,则直接从 .env.example 文件中读取',
         '100010' => '如果是在腾讯云函数,可以参考此处修改或新增环境变量,无需重建:https://github.com/luolongfei/freenom/blob/main/resources/screenshot/scf03.png',
         '100011' => '如果是在阿里云函数,可以直接在【函数详情】->【函数配置】->【环境信息】处编辑环境变量',
         '100012' => '由于你没有开启升级提醒功能,故无法在有新版本可用时第一时间收到通知。将 .env 文件中 NEW_VERSION_DETECTION 的值改为 1 即可重新开启相关功能。',