- Kitura Server: Learn how to create one in our Getting Started guide.
- IBM Cloud Account: Learn how to sign up for free
Step 1: Set URL target
To push your application, you first need to consult your cloud operator to find the URL you need to target. You can set it in the command line like this:
cf login -a <API endpoint>
You’ll also need to provide your username and password when prompted.
Step 2: Set target organisation
cf target -o <organisation> -s <space>
Step 3: Push your app
Now, you’re ready to push your app. Simply run the following command from the same location as your manifest.yml:
Your Kitura application should now be successfully deployed into your Cloud Foundry environment! If you haven’t edited the manifest.yml file, it will have been assigned a random route. If you visit this URL you should see the Kitura splash page.
Add logging: Get useful feedback from your server about startup and errors
Add routing: Add REST APIs, such as HTTP GET, to your server