xiaonizi 发表于 2014-7-10 14:54:58

JeeWx1.0(捷微) 百度BAE 部署文档

            JeeWx(捷微) 百度BAE 部署文档
开始前的准备
1. WAR包

下载地址:
链接: http://pan.baidu.com/s/1bnlcsk3 密码: 592i
下载war包和sql脚本文件用于部署
http://static.oschina.net/uploads/space/2014/0710/135116_ySoP_930898.png2. 注册百度账号

http://developer.baidu.com/cloud/rt
注册百度开发者账号。需要绑定手机号码。

注册好后选择开发者服务,然后点击创建应用按钮
http://static.oschina.net/uploads/space/2014/0710/134630_aDvi_930898.jpg
创建应用
http://static.oschina.net/uploads/space/2014/0710/132216_x7yr_930898.png
创建工程后会进入下面的页面
http://static.oschina.net/uploads/space/2014/0710/132523_XQSv_930898.pnghttp://static.oschina.net/uploads/space/2014/0710/132300_8UEQ_930898.png
点击查看域名,可以看到demo实例

页面输出经典的 hello world 表示你已经配置好BAE服务器端的部署环境了。

现在就需要上传你需要部署的程序WAR包和建立数据库了。

http://static.oschina.net/uploads/space/2014/0710/132648_x4l7_930898.pnghttp://static.oschina.net/uploads/space/2014/0710/132727_qWBL_930898.png


检出项目需要安装SVN安装SVN过程文档内不做说明。这里默认您安装了SVN的情况下
http://static.oschina.net/uploads/space/2014/0710/132833_zBnS_930898.png
http://static.oschina.net/uploads/space/2014/0710/132930_uggK_930898.png 上述从BAE上检出的文件

http://static.oschina.net/uploads/space/2014/0710/133005_b6ZV_930898.png .bae下载地址

提供的捷微发布包里面有;
下载后解压。将.bae文件夹上传到服务器上.(其实打开.bae文件夹看内部就能看出来是tomcat/conf文件下的配置文件)
我们现在修改自己程序的war包
将jeewx的程序war包已ZIP形式打开
找到目录 \WEB-INF\classes下的 dbconfig.properties
http://static.oschina.net/uploads/space/2014/0710/133106_IZT8_930898.png
打开dbconfig.properties这是配置数据库链接的配置文件

http://static.oschina.net/uploads/space/2014/0710/133148_1Lln_930898.png红框出需要配置的数据库地址 和用户名 密码。
这个时候需要回到BAE建立数据库:)是不是想说 - -为毛不刚开始就建立=。 =#

http://static.oschina.net/uploads/space/2014/0710/133233_6uyH_930898.png
点击添加新服务
http://static.oschina.net/uploads/space/2014/0710/133307_Pnbs_930898.png
选择mysql
http://static.oschina.net/uploads/space/2014/0710/133335_7B4a_930898.pnghttp://static.oschina.net/uploads/space/2014/0710/133421_EiP9_930898.png
http://static.oschina.net/uploads/space/2014/0710/133501_UE0m_930898.png 点击phpmyadmin 导入sql .下图是我已导入过的

http://static.oschina.net/uploads/space/2014/0710/134811_IauS_930898.png
http://static.oschina.net/uploads/space/2014/0710/133708_z8QY_930898.png然后OK。

这个时候在回过头看一下dbconfig.properties将你刚刚建立好的数据库的数据库名称替换一下
用户名密码是

基本信息里的   用户名:API Key密码:Secret Key
http://static.oschina.net/uploads/space/2014/0710/133749_M1Rr_930898.png
http://static.oschina.net/uploads/space/2014/0710/133915_YrOI_930898.png修改完毕后覆盖到自己程序(jeewx)war包 \WEB-INF\classes 下

然后将所有的文件和文件夹通过SVN上传至服务器
http://static.oschina.net/uploads/space/2014/0710/134003_CZ1p_930898.png
上传成功后。你会看到BAE下可以点击快捷发布了

http://static.oschina.net/uploads/space/2014/0710/134052_sTXl_930898.png
这个时候访问你之前设置的域名就可以访问你部署的项目了
http://static.oschina.net/uploads/space/2014/0710/134138_vaCT_930898.png



gaolu 发表于 2014-7-10 19:24:50

百度这个收费吗?

ezys56 发表于 2014-7-28 16:18:59

:)是要收费的现在
页: [1]
查看完整版本: JeeWx1.0(捷微) 百度BAE 部署文档