mirror of
https://github.com/getlago/lago.git
synced 2025-01-29 00:51:13 +07:00
misc: Update start guide in README (#371)
This commit is contained in:
parent
86c6c77026
commit
3c2a7dbb92
21
README.md
21
README.md
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user