From c40a56ab2b13bb72a7becba74d81f7de7a505b6c Mon Sep 17 00:00:00 2001 From: jysperm Date: Fri, 6 May 2016 15:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=95=BF=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E7=9A=84=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server.js b/server.js index c9dff9583..43e79bb2b 100644 --- a/server.js +++ b/server.js @@ -2,9 +2,9 @@ var AV = require('leanengine'); AV.init({ - appId: process.env.LC_APP_ID, - appKey: process.env.LC_APP_KEY, - masterKey: process.env.LC_APP_MASTER_KEY + appId: process.env.LEANCLOUD_APP_ID, + appKey: process.env.LEANCLOUD_APP_KEY, + masterKey: process.env.LEANCLOUD_APP_MASTER_KEY }); // 如果不希望使用 masterKey 权限,可以将下面一行删除 @@ -12,9 +12,9 @@ AV.Cloud.useMasterKey(); var app = require('./app'); -// 端口一定要从环境变量 `LC_APP_PORT` 中获取。 +// 端口一定要从环境变量 `LEANCLOUD_APP_PORT` 中获取。 // LeanEngine 运行时会分配端口并赋值到该变量。 -var PORT = parseInt(process.env.LC_APP_PORT || 3000); +var PORT = parseInt(process.env.LEANCLOUD_APP_PORT || 3000); app.listen(PORT, function () { console.log('Node app is running, port:', PORT); });