DEPLOY A WEBSITE TO
BLUEMIX
plan
 Step 1. Create a toolchain for your new app
 Step 2. Create a simple webpage
 Step 3. Create a manifest
 Step 4. Deploy and open the app
 Step 5. Commit your changes to the repo
 Step 1. Create a toolchain for your new app
 Log in to IBM Bluemix.
 Navigate to the DevOps dashboard.
 Click Create a toolchain.
 Select the Simple Cloud Foundry toolchain
(v2).
 On the toolchain page, enter a name for your
toolchain (usually your app name).
 For the Git Repos and IssueTracking tool
integration, select the Repository
type of New, and enter a name for your new
repo.
Click Create. This will open up
your toolchain's overview page.
Step 2. Create a simple webpage
 After your toolchain is created, it's time to code! In
this example, we will say "Hello" to the world in a
simple webpage.You can do the coding and testing
in theWeb IDE, completely in your browser.
 On your toolchain’s overview page, click the Eclipse
OrionWeb IDE.TheWeb IDE will open. A few files
like .cfignore and .gifignore will be created for you
automatically.
 In theWeb IDE, select File > New > File.
 The file is highlighted so that you can name it.
Enter index.html.
 In the editor area on the right, paste the following:
 <html>
 <body>
 Hello, BluemixWorld!
 </body>
 </html>
Step 3. Create a manifest
 A manifest is a file that tells Bluemix how to
deploy the application. It’s possible to deploy
using the launch configuration wizard in the
Web IDE without creating a manifest, but
we’ll create a very simple manifest so that
your app can be easily deployed
using either the Web IDE or the CF Command
Line tool.
 In theWeb IDE, select File > New > File.
 The file is highlighted so that you can name it.
Enter manifest.yml.
 In the editor area on the right, paste the
following:
1. ---
2. applications:
3. - buildpack: https://github.com/cloudfoundry/staticfile-buildpack.git
4. host: simple-website-${random}
5. name: simple-website
6. memory: 64M
7. stack: cflinuxfs2
Step 4. Deploy and open the app
Now that you have a webpage and a manifest
created in your workspace, you’re ready to
deploy!
The running website is opens in
a new window:
Step 5. Commit your changes to the repo
So far, you have done all your work in the Web IDE
workspace. Now you want to commit the changes to the Git
Repos and the Issue Tracking repo.
On the commit page, enter a
commit comment and
click Commit:
Click Sync to push your changes
to your repo:
 Congratulations!Your application is now
sending cheerful greetings to the Bluemix
world, and is in your Git Repos and Issue
Tracking repo.

web application.pptx

  • 1.
    DEPLOY A WEBSITETO BLUEMIX
  • 2.
    plan  Step 1.Create a toolchain for your new app  Step 2. Create a simple webpage  Step 3. Create a manifest  Step 4. Deploy and open the app  Step 5. Commit your changes to the repo
  • 3.
     Step 1.Create a toolchain for your new app  Log in to IBM Bluemix.  Navigate to the DevOps dashboard.  Click Create a toolchain.  Select the Simple Cloud Foundry toolchain (v2).  On the toolchain page, enter a name for your toolchain (usually your app name).
  • 5.
     For theGit Repos and IssueTracking tool integration, select the Repository type of New, and enter a name for your new repo.
  • 7.
    Click Create. Thiswill open up your toolchain's overview page.
  • 8.
    Step 2. Createa simple webpage  After your toolchain is created, it's time to code! In this example, we will say "Hello" to the world in a simple webpage.You can do the coding and testing in theWeb IDE, completely in your browser.  On your toolchain’s overview page, click the Eclipse OrionWeb IDE.TheWeb IDE will open. A few files like .cfignore and .gifignore will be created for you automatically.  In theWeb IDE, select File > New > File.  The file is highlighted so that you can name it. Enter index.html.  In the editor area on the right, paste the following:
  • 9.
     <html>  <body> Hello, BluemixWorld!  </body>  </html>
  • 11.
    Step 3. Createa manifest  A manifest is a file that tells Bluemix how to deploy the application. It’s possible to deploy using the launch configuration wizard in the Web IDE without creating a manifest, but we’ll create a very simple manifest so that your app can be easily deployed using either the Web IDE or the CF Command Line tool.
  • 12.
     In theWebIDE, select File > New > File.  The file is highlighted so that you can name it. Enter manifest.yml.  In the editor area on the right, paste the following: 1. --- 2. applications: 3. - buildpack: https://github.com/cloudfoundry/staticfile-buildpack.git 4. host: simple-website-${random} 5. name: simple-website 6. memory: 64M 7. stack: cflinuxfs2
  • 14.
    Step 4. Deployand open the app Now that you have a webpage and a manifest created in your workspace, you’re ready to deploy!
  • 15.
    The running websiteis opens in a new window:
  • 16.
    Step 5. Commityour changes to the repo So far, you have done all your work in the Web IDE workspace. Now you want to commit the changes to the Git Repos and the Issue Tracking repo.
  • 17.
    On the commitpage, enter a commit comment and click Commit:
  • 18.
    Click Sync topush your changes to your repo:
  • 19.
     Congratulations!Your applicationis now sending cheerful greetings to the Bluemix world, and is in your Git Repos and Issue Tracking repo.