Book Image

Implementing AppFog

Book Image

Implementing AppFog

Overview of this book

AppFog is the leading platform-as-a-service provider of PHP, Ruby, Node.js, and Java solutions. It is used by developers worldwide to deploy tens of thousands of applications. AppFog delivers a reliable, scalable, and fast platform for deploying applications in the cloud.This book is a hands-on guide that will walk you through creating and deploying applications to the cloud using AppFog, which will allow you to get your application deployed without the hassle of setting up servers.This book demonstrates how to use the AppFog service to build an application and have it running in the Cloud. It will walk you through the initial AppFog setup process and explain how to create your first application in minutes.You will also discover how to use services such as databases to make your applications more powerful. You will also learn how to create applications from scratch.You will find out everything you need to know to get an application running in the cloud for the first time.
Table of Contents (13 chapters)
Implementing AppFog
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Installing on Windows


  1. Go to the RubyInstaller download page available at http://rubyinstaller.org/downloads/.

  2. Choose and download the latest installer from the list. All the provided installers support the AppFog command line.

    Note

    You can use a 64-bit version of Ruby (marked x64) if you are sure you have a 64-bit version of Windows. If you have a 32-bit version of Windows, or are unsure, download one of the other installers, which work on both 32-bit and 64-bit Windows.

  3. Run the downloaded installer. If you are running a recent version of Windows, a Security Warning dialog will appear; confirm that the program has your permission to run.

  4. A sequence of dialogs appears. These allow you to specify installation language and agree to licensing terms. The configuration dialog is crucial.

  5. Be sure that Add Ruby executables to your PATH is checked. You can also install Tcl/Tk support and associate source files, but these are not needed for AppFog.

  6. Once Ruby is installed, a new program group appears in the Start Menu under All Programs.

  7. The shortcut Start Command Prompt with Ruby opens a command line window with the correct settings for using Ruby. Use this shortcut for all AppFog command line actions. You may want to copy it to the desktop or pin it to the status bar.

  8. Use the command line to install the AppFog Gem.

    c:\Users\isaac>gem install af
    
  9. Use the command line to install the Sinatra gem.

    c:\Users\isaac>gem install sinatra