misc: Update start guide in README (#371)

This commit is contained in:
Vincent Pochet 2024-07-02 15:32:22 +02:00 committed by GitHub
parent 86c6c77026
commit 3c2a7dbb92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,9 @@ Distributed under the AGPLv3 License. Read more [here](https://www.getlago.com/b
### Run the app
To start using Lago, run the following commands in a shell:
```
#### On a fresh install
```bash
# Get the code
git clone https://github.com/getlago/lago.git
@ -99,8 +101,21 @@ cd lago
echo "LAGO_RSA_PRIVATE_KEY=\"`openssl genrsa 2048 | base64`\"" >> .env
source .env
# Start
docker-compose up
# Start the api
docker compose up -d api
# Create the database
docker compose exec api rails db:create
docker compose exec api rails db:migrate
# Start all other components
docker compose up
```
#### After an update
```bash
docker compose up
```
You can now open your browser and go to http://localhost to connect to the application. Lago's API is exposed at http://localhost:3000.