2023-09-29 21:01:11 +03:00
|
|
|
---
|
|
|
|
title: Source Installation
|
|
|
|
description: Install and run homepage from source
|
|
|
|
---
|
|
|
|
|
|
|
|
First, clone the repository:
|
|
|
|
|
|
|
|
```bash
|
2023-10-04 23:15:59 -07:00
|
|
|
git clone https://github.com/gethomepage/homepage.git
|
2023-09-29 21:01:11 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
Then install dependencies and build the production bundle (I'm using pnpm here, you can use npm or yarn if you like):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pnpm install
|
|
|
|
pnpm build
|
|
|
|
```
|
|
|
|
|
|
|
|
If this is your first time starting, copy the `src/skeleton` directory to `config/` to populate initial example config files.
|
|
|
|
|
|
|
|
Finally, run the server:
|
|
|
|
|
|
|
|
```bash
|
2025-03-14 12:31:10 -07:00
|
|
|
HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev:1234 pnpm start
|
2023-09-29 21:01:11 +03:00
|
|
|
```
|
2025-01-04 22:13:28 -08:00
|
|
|
|
|
|
|
When updating homepage versions you will need to re-build the static files i.e. repeat the process above.
|
2025-03-15 10:18:26 -07:00
|
|
|
|
|
|
|
See [HOMEPAGE_ALLOWED_HOSTS](index.md#homepage_allowed_hosts) for more information on this environment variable.
|