|
To deploy your application on IBM Bluemix using the Zend Server:
-
Open your CLI.
- Create a new folder on your workstation, and access it.
- Create a new 'index.php' file in the root folder of your application, and paste the following code:
<?php echo "Hello world!; ?>
- Alternatively, if you have an application package (.zpk) ready for deployment, place it anywhere in your application.
- Enter the following command:
cf push <application name> -m 512M -b https://github.com/zendtech/zend-server-php-buildpack-bluemix.git
Your application is deployed using the Zend Server buildpack. This may take a few minutes
-
Once successfully initialized and deployed, a success message with the URL at which your application is available at is displayed.
- To access the application, enter the supplied URL in your Web browser. For a .zpk, enter:
http://<application URL>/<zpk name>
- To access Zend Server, add 'ZendServer' to the supplied URL. For example:
http://<application URL>/ZendServer
The Zend Server Login page is displayed.
- To access the Zend Server UI, enter the following credentials:
- Username - admin
- Password - enter the following command in your CLI to retrieve an initial password:
cf file <application name> /app/zend-password Tip: To change the Zend Server UI password, or in case you misplace your password, enter the following commands: cf set-env <application name> ZS_ADMIN_PASSWORD <new password> cf restart <application name>
- To update your application in the future, use the 'cf push' command from within your application's source code directory.
|