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

Creating aliases


You can use aliases to map a command to a custom command that is easier to remember or shorter to type.

Command

Description

af alias [alias=command]

Creates an alias.

af aliases

Lists all of the aliases you have set up.

af unalias [alias]

Removes an alias you had previously configured.

Using aliases is currently fairly restricted. For example, you cannot create an alias that includes parameters. However, if you just want to change the command name, following is an example. In this example we will create an alias to use lo instead of logout:

$af aliases
No Aliases

$ af alias lo=logout
Successfully aliased 'lo' to 'logout'

$ af aliases
+-------+---------+
| Alias | Command |
+-------+---------+
| lo    | logout  |
+-------+---------+

$ af lo
Successfully logged out of [https://api.appfog.com]

$ af unalias lo
Successfully unaliased 'lo'