> ## Documentation Index
> Fetch the complete documentation index at: https://docs.forest.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Forest on a remote machine

In this short tutorial, we'll cover how to install Forest on a remote environment instead of locally.

> [!WARNING]
>
> This is **not** the recommended way of using Forest.

When you install Forest, on the last step you are asked to run some commands:

![](https://mintcdn.com/forest/qFIlQ-TfU5KAw1-I/images/legacy/javascript-agents/screenshot%202020-02-17%20at%2014.52.35.png?fit=max\&auto=format\&n=qFIlQ-TfU5KAw1-I\&q=85\&s=8c3f37dc3f246bb3eede707b19f13750)

The recommended way of installing Forest is to run those commands **locally**, which will generate files in your current local directory.

**However**, you may require to install Forest **on a remote server**: in this case, you must:

1. Edit the second command (`lumber generate`):
   * change `--application-host` to the **URL** of your remote server
2. Run those commands **on that remote server** instead of locally.

> [!WARNING]
>
> All remote environments must use **HTTPS** (port 443) for security reasons. Choosing to install this way will require that you set up SSL certificates on your server yourself.

> [!WARNING]
>
> Remember that the database credentials provided on the previous should reflect where the command will be run (i.e: the host and port might be different).

### Using Docker

When you install Forest, on the last step you are asked to run some commands:

![](https://mintcdn.com/forest/qFIlQ-TfU5KAw1-I/images/legacy/javascript-agents/screenshot%202020-02-21%20at%2015.08.25.png?fit=max\&auto=format\&n=qFIlQ-TfU5KAw1-I\&q=85\&s=e2c4a0c24af4ab074822633c96f593c4)

The recommended way of installing Forest is to run those commands **locally**, which will generate files in your current local directory.

**However**, you may require to install Forest **on a remote server**: in this case, you must:

1. Edit the first command (`docker run`):
   * change `APPLICATION_HOST` to the **URL** of your remote server
2. Run those commands **on that remote server** instead of locally.

> [!WARNING]
>
> All remote environments must use **HTTPS** (port 443) for security reasons. Choosing to install this way will require that you set up SSL certificates on your server yourself.

> [!WARNING]
>
> Remember that the database credentials provided on the previous should reflect where the command will be run (i.e: the host and port might be different).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.