WSO2 API Cloud documentation is getting a whole new look at cloud.docs.wso2.com.
Try WSO2 Cloud for Free
Sign in

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Execute the following command to clone the sample node.js REST service application:

    Code Block
    git clone https://github.com/wso2/cloud-heroku-samples.git
  2. Navigate to the directory where the sample application got cloned.
  3. Execute the following command to create a new Heroku application:

    Code Block
    heroku create
  4. Execute the following command to deploy the sample code to the new Heroku application:

    Code Block
    git push heroku master
  5. Execute the following command to Ensure to ensure that you have at least one instance of the service running:

    Code Block
    heroku ps:scale web=1
  6. To verify that your web service is running, append /hello?name=World to the root URL of your Heroku application and navigate to it via your browser. For example,  if https://boiling-scrubland-10078.herokuapp.com/ is the root URL of your Heroku application, append /hello?name=World to the URL (i.e., https://boiling-scrubland-10078.herokuapp.com/hello?name=World).

...