Comments (3)
请使用最新版的代码库和文档。
https://github.com/brandnewera/sumeru/blob/master/sumeru/server/DbCollectionHandler.js
可以看到这部分已经变为
host = process.env.BAE_ENV_ADDR_MONGO_IP;
port = +process.env.BAE_ENV_ADDR_MONGO_PORT;
username = process.env.BAE_ENV_AK;
password = process.env.BAE_ENV_SK;
2013/6/7 mmtdream [email protected]
各位大神,我按所给的文档做了个Demo,在本地运行都是正常的。然后按照文档里面介绍的,发布到BAE的时候出现了点小问题,还望各位大神指点。问题描述如下:
1)问题出在发布介绍文档(framework-bae.pdf)中的第9步,文档中如下描述:(9)修改sumeru/server/DbCollectionHandler.js
修改该⽂文件第136、137⾏行的username、password,输⼊入分配的username和password
username = "SmrWebApp";//fw.config.get('bae_user');
password = "AppWebSumeru%";//fw.config.get('bae_password');我严格按照文档中所说的进行修改了,运行失败,socket服务无法启动,提示500内部服务器错误。后来我又尝试着把上面的用户名和密码修改为我们的百度账号,还是不行。需要说明的是:我们已经在BAE的后台创建了一个Mongo的数据库,并且分配了权限给App。各种尝试,始终不行。后来干脆修改为你们上传的一个Demo中的设置,即按如下设置:host
= "10.50.147.16";
port = 43030;
username = "SmrWebApp";//fw.config.get('bae_user');
password = "AppWebSumeru%";//fw.config.get('bae_password');
这样设置后,就可以正常运行了。这里的IP和端口都是写死了的,肯定不是最终的解决方案。2)希望获得的帮助:我想请问一下,这4行代码到底应该怎么设置才能正常启动程序?即host,port,username,password分别应该怎么样设置?这些值从哪里可以获取到?后台是否还需要其他额外的操作或者设置呢?
不胜感激,期待回复!
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/14
.
from cloudajs.
host = process.env.BAE_ENV_ADDR_MONGO_IP;
port = +process.env.BAE_ENV_ADDR_MONGO_PORT;
username = process.env.BAE_ENV_AK;
password = process.env.BAE_ENV_SK;
from cloudajs.
这个代码试过了,最开始就是用这个代码,不行才尝试用其他的。我已经更新过了,目前的版本修改日期是5.27.
谢谢。
from cloudajs.
Related Issues (20)
- touchjs 如果用事件代理 event对象拿不到触发事件的dom
- 怎么开启debug模式 HOT 1
- 点击链接时跳转太快 HOT 2
- 请问clouda在windows平台可以使用吗? HOT 2
- 关于clouda的一些问题(急)!!! HOT 1
- sumeru.collection.create的API说明真当没问题么? HOT 1
- html缓存问题 HOT 1
- sumeru start .... NON BAE MODE
- 求救,关于clouda的文件上传疑问 HOT 1
- 0.10.4 用户登陆,在刷新页面之后不能持久化 HOT 1
- 在controller怎么为session绑定自定义数据?
- 是否考虑支持不同数据源
- view 层最好支持自定义模板,比如支持jade,ejs等等
- expand Validation in Model HOT 1
- 有一个问题感觉很奇怪 HOT 4
- 如何加载font-awesome等第三方图标库
- Android 的QQ浏览器支持问题
- 403 -Forbidden 安卓手机运行轻应用调试时总是出现这个问题 HOT 2
- touch.js的swipe在锤子手机原生浏览器上不能使用 HOT 2
- touchjs的touch.config的使用问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudajs.