Update README.md

This commit is contained in:
Michael 2025-04-03 17:14:56 +02:00
parent 88f1732bdc
commit 7f79c78c23

View file

@ -29,20 +29,30 @@ One can quickly test docker by running:
docker run hello-world docker run hello-world
``` ```
Clone this repo using the command git clone and the url of this repo.
This repo contains a git submodule sintonia_webapp, it refers to this [repo](https://git.congegni.net/Congegni/sintonia_webapp). This repo contains a git submodule sintonia_webapp, it refers to this [repo](https://git.congegni.net/Congegni/sintonia_webapp).
To pull the repo, open a terminal in the root of this project and run this command: Right now the submodule is not set up properly, so open a terminal in the root of this project and run this command:
``` ```
git submodule update --init --recursive --remote && cd sintonia_webapp && git checkout dev && cd .. git clone ssh://gitea@git.congegni.net:4022/Congegni/sintonia_webapp.git && cd sintonia_webapp && git checkout dev && cp .env.dev .env && cd ..
``` ```
The folder sintonia_webapp now it's synced with the dev branch (the currently active branch). The folder sintonia_webapp now it's synced with the dev branch (the currently active branch).
In the sintonia folder, edit the file docker/config.yml by adding to the public url variable the local url (for dev add http://127.0.0.1:9876) Return to the sintonia project folder, run this commands:
Add a string to the api_key and secret_key field, for dev it can be any random string ```
# Clean and build
make clean
cp .env.dev .env
DOCKER_BUILDKIT=1 docker-compose build
Copy or rename the file .env.dev to .env # Setup
make dev-certs
docker-compose run --rm legacy make build
docker-compose run --rm api libretime-api migrate
```
Run the following command: Run the following command:
``` ```