Cloud9 is an awesome online IDE that comes preloaded with many build packs and supports over 100 languages and frameworks. It comes with a built-in terminal and debian based package manager. Basically it has Ubuntu installed at its root. So if you wan’t to avoid the hassle of installing many frameworks in your machine Cloud9 is your best choice. It also has support for many git hosting websites like Github and Bitbucket so you can directly sync in your code repository from Github in your Cloud9 workspace.The code editor has a look of Sublime text.
Deploying your Project on Cloud9
Deploying your Project on Cloud9 is as simple as anything. If you are working on any web based application (like Ruby on Rails) you can also directly see your application running in a temporary url provided by cloud9. I am telling how I deployed it for plots2 repository.
- Visit Cloud9 and login with the Github Button provided you have a Github account.
- Create a new workspace by Clicking Create Workspace button. Name your workspace and give it a description or optionally (as I did) if you have a Github repository enter the URL in the “Clone from Git or Mercurial URL” field, and it will clone it from your Github repository. Then click Create Workspace.
- In the terminal at the bottom of the page, type
and press enter
- Enter your username when prompted, and run
rails s -b $IP -p $PORT
- Yay! You have the app running! Go to the URL shown.
They did a clever task by writing all the pre running commands on a installation script. That’s what the install_cloudnine.sh file does. It makes it easier for beginners to deploy it very easily. You can also write a installation script yourself by writing the commands for installing or setting up any dependencies for your project.That gives it a much cleaner look.Here is my Cloud9 deployment of plots2.
So you see how simple it is! Hope you enjoyed!