v1.0.0-beta.9
What's Changed
- fix(server): cannot restart stopped app by @maslow in #1129
- feat(web): add laf status link by @LeezQ in #1127
- fix(web): cannot restart stopped app by @LeezQ in #1128
- doc: Update install-on-linux.sh add some install command by @yinzhidong in #1124
- feat(server): add npm install flags to region; opt instance starting perf by @maslow in #1133
- fix(runtime): empty volume mounted error in runtime image by @maslow in #1135
- chore(cli): modify some default templates by @nightwhite in #1136
- feat: VSCode supports automatic introduction of cloud functions. by @nightwhite in #1146
- doc: add depend tips by @nightwhite in #1131
- feat: laf-server support i18n (example) by @aFlyBird0 in #1143
- doc: delete old pic by @nightwhite in #1147
- fix(server): default request ephemeral-storeage error by @maslow in #1149
- fix(server): turn off readOnlyRootFilesystem for runtime by @maslow in #1150
- fix(web): running wouldn't publish code by @newfish-cmyk in #1158
- chore(server): update @lafjs/cloud runtime version by @nightwhite in #1152
- feat(web): add signup with invitecode by @newfish-cmyk in #1144
- doc: add 3min wechat example by @nightwhite in #1161
- doc: add two cloud function example by @nightwhite in #1134
- doc: fix wrong format by @nightwhite in #1164
- feat(web): add invitecode to homepage and login by @newfish-cmyk in #1170
- refactor(cli): refactor cli structure by @skyoct in #1166
- feat(web): add function fetch button by @newfish-cmyk in #1163
- fix(cli): fix ignore file by @skyoct in #1174
- feat(cli): add base deploy by @skyoct in #1176
- fix(web): fix function template's indentation by @newfish-cmyk in #1182
- feat(server): add metered billing module, remove subscription module, discard Prisma by @maslow in #1187
- fix(server): fix server dockerfile error; web merge conflict by @maslow in #1188
- fix(server): IResponse type def error by @maslow in #1189
- build: fix laf-server image build slowly by @maslow in #1191
- fix(server): add trial bundle checks in updating application by @maslow in #1192
- feat(cli): add website deploy by @skyoct in #1190
- fix(server): update resource price to 0 in initializer by @maslow in #1193
- fix(web): pat copy missed by @LeezQ in #1194
- fix(server): creating website report not found error by @maslow in #1198
- fix(server): update billings get api; add createdby to billing schema by @maslow in #1197
- fix(server): Fix invitation code signup issue by @HUAHUAI23 in #1201
- fix(server): rename limit to pageSize in func log api by @maslow in #1202
- feat(web): billing page by @LeezQ in #1195
- feat(runtime): support multi-level uri of cloud function by @maslow in #1203
- fix(web): balance value error in cost center page by @maslow in #1204
- fix web balance by @maslow in #1205
- fix(web): fix function name regx error by @maslow in #1206
- fix(web): app env & price show by @LeezQ in #1207
- feat(web): cloud functions support multi-level url by @newfish-cmyk in #1208
- fix(web): Remove billingQuery from useEffect dependencies by @newfish-cmyk in #1209
- feat(cli): compatible with new apis by @skyoct in #1211
- refactor(web): price free show by @LeezQ in #1214
- fix(web): adjust editor tips being obscured and some other style problems by @luckyyyyy in #1179
- fix(server): fix billing task concurrency overflow by @maslow in #1216
- fix(web): fix fetch button zh name and width by @newfish-cmyk in #1217
- feat(server): support website history by @skyoct in #1210
- chore(build): seperate deploy and build dir by @maslow in #1219
- chore(deploy): fix deploy scripts path error by @maslow in #1220
- feat(web): add laf ai chat by @LeezQ in #1221
- feat(web): update laf ai request url by @LeezQ in #1223
- fix(web): fix deploy would clear params by @newfish-cmyk in #1224
- refactor(server): refactor auth api(profile/pat) by @maslow in #1226
- fix(web): fix /v1/profile api url missing by @maslow in #1227
- feat(runtime): add chatgpt package builtin runtime by @maslow in #1228
New Contributors
- @luckyyyyy made their first contribution in #1179
Full Changelog: v1.0.0-beta.8...v1.0.0-beta.9
Key Points
- laf has implemented a new measuring and billing mechanism. #1187
- remove prisma in laf server
- support history mode route in websitehosting
- support multiple-level url for cloud function
- add laf ai polit
Migration Guides
Upgrade the server and web image version:
run this in your master node to upgrade laf-server & laf-web
kubectl set image deployments/laf-server -n laf-system \
laf-server=docker.io/lafyun/laf-server:1.0.0-beta.9
kubectl set image deployments/laf-web -n laf-system \
laf-web=docker.io/lafyun/laf-web:1.0.0-beta.9
To support new billing mechanism, you should add a new field to Application
collection in system database.
run this in your mongodb shell.
use sys_db;
db.Application.updateMany({}, {
$set: {
billingLockedAt: new Date('1970-01-01T00:00:00.000Z')
}
})
To support multi-level url path in cloud function:
run this in your mongodb shell to upgrade runtime version
use sys_db;
// runtime version
const version = "1.0.0-beta.9"
const main_image = `docker.io/lafyun/runtime-node:${version}`
const init_image = `docker.io/lafyun/runtime-node-init:${version}`
db.Runtime.updateOne({ latest: true }, {
$set: {
version: version,
image: {
main: main_image,
init: init_image
}
}
})
db.Runtime.find().pretty()
Add new environment to laf-server deployments:
kubectl edit deployment/laf-server -n laf-system
env:
- name: METERING_DATABASE_URL
value: >-
mongodb://your-root-user:your-password@mongo-cluster-rs0-0.mongo-cluster-rs0.default.svc.cluster.local:27017/sealos-resources?authSource=admin&replicaSet=rs0&w=majority