Testing the application
Before creating an application in AppFog, it is useful to test it out locally first. To do this you will again need the Sinatra Gem installed. If you need to do that, refer to Appendix, Installing the AppFog Gem.
The following is the command to run your small application:
$ ruby indiseaf4.rb
You will see the Sinatra application start and then you can navigate to http://localhost:4567/
in a browser. You should see a page that has the current date and time information like the following screenshot:
To terminate the application, return to the command line and press Control+C.