mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
30 lines
780 B
Markdown
30 lines
780 B
Markdown
---
|
|
title: Source Installation
|
|
description: Install and run homepage from source
|
|
---
|
|
|
|
First, clone the repository:
|
|
|
|
```bash
|
|
git clone https://github.com/gethomepage/homepage.git
|
|
```
|
|
|
|
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
|
|
HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev:1234 pnpm start
|
|
```
|
|
|
|
When updating homepage versions you will need to re-build the static files i.e. repeat the process above.
|
|
|
|
See [HOMEPAGE_ALLOWED_HOSTS](index.md#homepage_allowed_hosts) for more information on this environment variable.
|