https://github.com/labring/laf/tree/main/runtimes/nodejs
只需要把runtime跑起来设置mongodb数据库
踩坑: mongo数据库要设置副本集
踩坑2:需要增加 .env 文件
LOG_LEVEL= 'debug'
APPID= 'sfx0jh'
NODE_VERSION= '18.16.1'
FLAGS= '--max_old_space_size=102--max-http-header-size=1048576'
YARN_VERSION= '1.22.19'
SERVER_SECRET= '5DnKRKkxLzQvJXYe6fBy1XekZlPRCtI52McOdIOn3ZGgiExQBnJabBLvchu7x0qS'
DEPENDENCIES= 'i18next@23.2.11@midwayjs/faas@3.11.15@midwayjs/core@3.11.15@midwayjs/hooks@3.1.6'
OSS_ACCESS_SECRET= '992DVFmS50RUdZa8HKDCjHwJU7oxkF17FYtNF16i54xf9etrzSk4GUaNWxqjUHlH'
OSS_ACCESS_KEY= 'sfx0jh'
OSS_REGION= 'sg'
LOG_SERVER_TOKEN= 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBpZCI6InNmeDBqaCIsImlhdCI6MTY4OTg1MTg1M30.6OTNh4-F0ZpvNHb-MpvaipmVkVLw8ZG0OqfZPp1o6g4'
OSS_EXTERNAL_ENDPOINT= 'https://oss.laf.dev'
DB_URI= 'mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.10.1'
NPM_INSTALL_FLAGS= ''
RESTART_AT= '1689851853438'
PORT = '3508'
主要参数为 APPID ,DB_URI