# Using a Mongrel server [edit]

This page explains how to use a Mongrel server with RadRails.

## Introduction

You can set up and run a Mongrel server the same way that you would run a WEBrick server. You can create a new Mongrel server either when you create a Rails project or after you create the project. Use the Servers View to control your Mongrel server.

Before starting to work with a Mongrel server, make sure that you set your Mongrel path in your Rails preferences. (See Configuring your RadRails setup for instructions.

## Instructions

### Creating a Mongrel server

You can create a Mongrel server when you initially create your Rails project (see Starting a new RadRails project), or you can create one afterwards. To create a Mongrel server after you have created a RadRails project:

1. In the Rails Navigator View, right-click your project and select New > Mongrel Server from the context menu to open a New Mongrel Server window.
2. In the Project field, type the name of your project (if it is different from the default value).
3. In the Name field, type a name for your server (if different from the default value).
4. In the Port field, type the port number for your server (if different from the default).
5. Click the Finish button to create your server.

### Running a Mongrel server

To run a Mongrel server:

1. In the lower portion of your workbench, click the Servers tab to access the Servers View.
2. In the Servers View, select your server.
3. Click the Start button to start your server.
4. Click the Stop button to stop your server.

The Servers View also gives you the following options:

- Click the Launch Browser button to launch your project in a web browser.
- Click the Refresh button to refresh your server.
- Click the Edit button to edit your server properties.
- Click the Remove button to delete the selected server.

## Related Topics

- Getting started with RadRails
- Starting a new RadRails project
- Importing an existing project into RadRails
- Building an application in RadRails
- Running a unit test on RadRails
- Creating and running a WEBrick server
- Executing SQL statements in RadRails
- Browsing a database in RadRails

Retrieved from "http://aptana.com/docs/index.php/Using_a_Mongrel_server"

Categories: AptanaHelp | RadRails