Detmar ter Huurne
posted this on November 23, 2011 17:10
This article will explain to you how to deploy your applications to Heroku. Heroku is cloud based application platform for easy deployment of your applications. The integration with Cloud9 IDE makes your development process even more agile. Please, continue to read this article if you already have an account. Otherwise go to the Heroku Homepage to create one for free.
Also, you can watch a demo of the feature when it was released here.
To get started we use a simple NodeJS application, which is explained in this article.
IMPORTANT: Before you attempt to deploy your application, please make sure that you have committed all your changes to version control. Cloud9 will deply for you whatever has been committed to version control. For example, with git on the command line you would type:
git add .
git commit -m "Committing the latest version of my app"
Once your latest changes have been committed, you can continue to deploy your application.
The deployment option is placed at the bottom of the project bar, which is located on the left.
From there you can press the plus sign (+) next to Deploy to add another deploy target. When you choose Heroku as the type of deployment an option to sign in to Heroku appears (see images below). After you have signed in to your Heroku account you can create a new deploy target or choose an existing one from your account.
Note: Heroku only allows you to create names for your apps that contain uppercase, lowercase and dashes.
Now you have added a deploy target, which you can use to deploy your application to. Next, you can press Deploy to continue the process and the following window will pop-up.
We can generate a package.json file for you, which contains the metadata that contains information to share with Heroku. The following lines are added to the file: