summerstar8 / snova

Automatically exported from code.google.com/p/snova
0 stars 0 forks source link

是否支持Appfog? #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
如题。

Original issue reported on code.google.com by fay...@gmail.com on 4 Dec 2012 at 4:17

GoogleCodeExporter commented 9 years ago
一般支持Java就可以

Original comment by yinqiwen@gmail.com on 4 Dec 2012 at 4:44

GoogleCodeExporter commented 9 years ago
谢谢。已经上传成功。cool stuff.

以下是步骤:

安装安装railsinstaller,Mac 或者 Unix电脑免去这一步。

启动“Start Command Prompt with 
Ruby”,运行以下两行代码,安装“af”,时间可能要十几分��
�,视你的网络情况而定。

gem update --system
gem install af

然后下载出c4 server.war 放到容易访问到的文件夹。比如D:\appfog

登录af

af login

输入信息

然后是通过DOS命令进入D:\appfog文件夹

最好是上传:

af update yourappid

如果出错,请增加你的app内存。在https://console.appfog.com/apps/you
rapp 页面的MEMORY QUOTA里增加。然后再试一遍。

OK,DONE。Enjoy it!

Original comment by fay...@gmail.com on 4 Dec 2012 at 4:54

GoogleCodeExporter commented 9 years ago
great, 我抽空写个简要的wiki

Original comment by yinqiwen@gmail.com on 4 Dec 2012 at 5:12

GoogleCodeExporter commented 9 years ago
前段时间试用过,速度比较慢,而且流量限制50G,超出的要另�
��交钱,不推荐!

Original comment by NannieS...@gmail.com on 4 Dec 2012 at 5:46

GoogleCodeExporter commented 9 years ago
据说是50GB/month

Original comment by yinqiwen@gmail.com on 4 Dec 2012 at 6:06

GoogleCodeExporter commented 9 years ago
我刚才试了几次,都挂了,只好加大内存。流量是50GB每月,�
��觉得够用。

Original comment by fay...@gmail.com on 4 Dec 2012 at 6:35

GoogleCodeExporter commented 9 years ago
新加坡机房内存要大于512M才运行。

Original comment by NannieS...@gmail.com on 4 Dec 2012 at 6:39

GoogleCodeExporter commented 9 years ago
我都服了,刚才用爱尔兰机房的Appfog,结果访问Twitter时无法�
��推。用第三方客户端翻上推,无法查看Follwers页面,被提示�
��You are not allowed to visit this site via proxy because Fetch timeout for 
url:http://XXXXXX

换成Heroku,还是无法发推。不过用第三方上推,这回倒没什��
�设限。

Original comment by fay...@gmail.com on 4 Dec 2012 at 6:59

GoogleCodeExporter commented 9 years ago
出现上面的说明还是用GAE, 
默认的如果[SPAC]下的Default值为Auto的话,若GAE的Enable为1,等��
�于GAE
把[GAE]的Enable改为0

Original comment by yinqiwen@gmail.com on 4 Dec 2012 at 7:01

GoogleCodeExporter commented 9 years ago
这个创建很直观 c4服务器端要么优化 要么得换一种语言啦 
java果然很占地方

Original comment by pazz7ven on 5 Dec 2012 at 3:05

GoogleCodeExporter commented 9 years ago
部署到appfog成功并配图留档了。。java内存占用挺大的嘛,512m
都搞不定。配置时候建议1g内存呢

Original comment by xilo...@gmail.com on 5 Dec 2012 at 6:50

GoogleCodeExporter commented 9 years ago
建议用node.js改写C4服务端.

Original comment by AllieOs...@gmail.com on 5 Dec 2012 at 8:13

GoogleCodeExporter commented 9 years ago
这个不是语言的问题,是启动Java应用的appserver的问题。默认�
��appserver应当比较笨重,切换到jetty之类轻量级的servlet容器就
可以了。

Original comment by yinqiwen@gmail.com on 5 Dec 2012 at 8:21

GoogleCodeExporter commented 9 years ago
刚验证了下,只需要最少的128M内存即可部署C4
顺手写了简单的wiki参考 
http://code.google.com/p/snova/wiki/AppfogInstallation

Original comment by yinqiwen@gmail.com on 5 Dec 2012 at 9:11

GoogleCodeExporter commented 9 years ago
各个机房占用内存不一样,我用的是dallas 的机房512报错。

Original comment by xilo...@gmail.com on 5 Dec 2012 at 9:23

GoogleCodeExporter commented 9 years ago
尽量选择amazon的, 
Rackspace、HP这些云服务目前还未被市场证明

Original comment by yinqiwen@gmail.com on 5 Dec 2012 at 9:28