Cloud9 Deployment

Well it’s been a week while the GSoC 2016 application deadline is over and waiting for results is frustrating. So let me share some awesome facts I got to know while I contributed to plots2.

Cloud9 IDE

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.

  1. Visit Cloud9 and login with the Github Button provided you have a Github account.
  2. 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.
  3. In the terminal at the bottom of the page, type . ./
    and press enter
  4. Enter your username when prompted, and run rails s -b $IP -p $PORT
  5. 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 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!