DreamFactory Deployments with CloudFoundry

From DreamFactory
Jump to: navigation, search
DreamFactoryInstallationDreamFactory Deployments with CloudFoundry
(Moving Files Around)
Line 29: Line 29:
These directories and files are as follows:
These directories and files are as follows:
[[File:Screen Shot 2017-10-23 at 4.11.21 PM.png|400px|none|left|CloudFoundry Files]]

Revision as of 21:46, 23 October 2017

This Wiki tutorial applies to both Pivotal and IBM Bluemix.

Dreamfactory can be deployed as a CloudFoundry manifest and launched in both the Pivotal and IBM BlueMix Platforms. This requires a bit of restructuring of the source code but can be easily done.

To set things up, the DreamFactory source needs to be pulled down and composer run first, so the necessary vendor packages can be brought in. Next, the newly updated source files (inflated by Composer) needs to be placed in a separate directory under the manifest file. This essentially becomes our “App” package for CloudFoundry.

Here’s a step-by-step guide on the basics of setting things up. This demo will use the open source version of the product with the default Sqlite database but should be a good place to get started for further development.

Install DreamFactory (Temporarily)

First, let’s create a temporary directory to stage our work.

mkdir cf-dftemp

Next, pull down the dream factory source into a directory called “htdocs”.

git clone https://github.com/dreamfactorysoftware/dreamfactory.git ./htdocs

Next, install DreamFactory and its dependencies with Composer in the new directory.

cd htdocs

composer install —no-dev

Let composer install the dependencies and then we’ll next need to move some files around.

Moving Files Around

Some of the config files for CloudFoundry are carried along with the DreamFactory source. You will need to move these files up a level above the ./htdocs directory.

These directories and files are as follows:

CloudFoundry Files