CloudFoundry环境搭建及简单应用部署
官方指导:http://docs.cloudfoundry.com/getting-started.html
首先,需要一个CloudFoundry账号。
然后,在电脑上安装所需的软件环境。
如果喜欢使用图形化的安装Cloud Foundry Integration Extension for Eclipse or STS;如果喜欢使用命令行的选择安装VMC。
安装Cloud Foundry Integration Extension for Eclipse or STS。
1.安装Eclipse IDE for JEE Developers(Indigo以上版本)。
2.安装Spring Tool Suite(sts)( 版本2.9.0以上)。
sts的安装。

------------------

----------
eclipse的安装。
help--》eclipse marketplace






环境安装完成后。
在In STS 或 Eclipse中,新建一个Cloud Foundry Server
选择 Window > Show View > Servers

点击new server wizard 或者右键选择new>server.

展开VMware,选择Cloud Foundry。

填写邮箱和密码。
在URL一栏里选择你想建立的CloudFoundry 选项
-
VMware Cloud Foundry. The VMware-hosted open platform as a service.
-
Local Cloud. A local installation of the VMware Cloud Application Platform (VCAP).
-
Microcloud. A Micro Cloud Foundry virtual machine.
点击finish完成

配置完成。
从eclipse或sts部署应用。(以eclipse为例,sts方法是一样的)
新建一个web项目。

将项目部署到服务器,和部署到本地服务器一样。

输入你的应用名称(次名称在查看应用时用到)

点击完成。

在地址栏输入:“应用名称.couldfoundry.com”即可查看结果。

浙公网安备 33010602011771号