Using Forward with Ruby and Rails

Forwarding a site

If you haven’t already, you’ll need to install Forward.

Once Forward is installed, you can start forwarding any of your Ruby projects. Forward works with Rack, Sinatra, Rails, Padrino, or anything else—if you can view it in the browser, Forward can give you a link to share it.

For an example, if you have your local Rails dev server running at http://localhost:3000, go to that URL in your web browser, then click the Forward icon.

Chrome forward url icon

When Forward opens, click the ‘Start tunnel’ button.

Forward will start a tunnel and give you a shareable URL. Give this URL to a client or to other developers on your team and let them review the site before you even deploy to a staging server.

Im link

Read more about using Forward on the Getting Started page.

Forwarding a site

If you haven’t already, you’ll need to install Forward.

Once Forward is installed, you can start forwarding any of your Ruby projects. Forward works with Rack, Sinatra, Rails, Padrino, or anything else—if you can view it in the browser, Forward can give you a link to share it.

For instance, if you have your local Rails development server on port 3000, you could forward it by running the following command:

forward 3000

Forward will then start a tunnel and give you a shareable URL. Give this URL to a client or to other developers on your team and let them review the site before you even deploy to a staging server.

Using a Forwardfile to set defaults for your project

When you’re working on a project with a team, and your project is using some form of version control, it’s nice to be able to share settings for your Forward tunnels. You can do this with a Forwardfile.

A Forwardfile is a short YAML-formatted file that sits in each project folder and specifies all the options that you’d normally pass to the forward command manually.

Once you’ve added a Forwardfile all you need to do is run forward and it’ll use the options you specified without having to pass anything in to the command itself.

Read more about using a Forwardfile on the Getting Started page.