> ## Documentation Index
> Fetch the complete documentation index at: https://forest-chore-open-api.mintlify.site/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.
</Warning>

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

<img src="https://mintcdn.com/forest-chore-open-api/TmGmEqoffYUVv4Df/images/legacy/javascript-agents/screenshot%202020-02-17%20at%2014.52.35.png?fit=max&auto=format&n=TmGmEqoffYUVv4Df&q=85&s=211ae4a723d485eee19bd19cb9cc3a42" alt="" width="1920" height="969" data-path="images/legacy/javascript-agents/screenshot 2020-02-17 at 14.52.35.png" />

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>

<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).
</Warning>

### Using Docker

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

<img src="https://mintcdn.com/forest-chore-open-api/TmGmEqoffYUVv4Df/images/legacy/javascript-agents/screenshot%202020-02-21%20at%2015.08.25.png?fit=max&auto=format&n=TmGmEqoffYUVv4Df&q=85&s=0bacd724e78ccd501a10dc1e20370285" alt="" width="1920" height="969" data-path="images/legacy/javascript-agents/screenshot 2020-02-21 at 15.08.25.png" />

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>

<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).
</Warning>
