Skip to content

Commit

Permalink
misc: Update start guide in README (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Jul 2, 2024
1 parent 86c6c77 commit 3c2a7db
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down

0 comments on commit 3c2a7db

Please sign in to comment.