layotto / java-sdk

java sdk for layotto
8 stars 13 forks source link

init shell data #40

Closed LXPWing closed 1 year ago

LXPWing commented 2 years ago
LXPWing commented 2 years ago

@seeflood redis的value插入什么文本

seeflood commented 1 year ago

@seeflood redis的value插入什么文本

抱歉刚看到!都行,得体即可, 例如 "This message comes from Alibaba Cloud ECS"

要不,消息从环境变量里读,或者从某个文件读?这样在阿里云和 aws 部署的时候,我可以配不同的消息

seeflood commented 1 year ago

@LXPWing 脚本看起来没问题哈,就是要补充下输入redis 的kv,以及启动layotto的config.json,在 https://github.com/layotto/java-sdk/blob/main/examples-preview-service/config.json

LXPWing commented 1 year ago

image @seeflood 启动layotto的config.json,好像原先就写好了

LXPWing commented 1 year ago

redis的value,通过shell命令行传递文件路径参数例如 “sh start.sh test.txt”来读取

seeflood commented 1 year ago

@LXPWing

seeflood commented 1 year ago

redis的value,通过shell命令行传递文件路径参数例如 “sh start.sh test.txt”来读取

ok

LXPWing commented 1 year ago

@seeflood image 这里redis json不能使用环境变量,上服务的时候需要手动添加