Replace pwd with relative path, update README

This commit is contained in:
Guntis Smaukstelis
2023-12-28 00:13:26 +02:00
parent 9851b9dcd3
commit 5d5a20e95a
2 changed files with 22 additions and 5 deletions
+20 -3
View File
@@ -7,17 +7,34 @@ Rename `.env-sample` to `.env` and fill in credentials
## Run
```
docker-compose up node
docker-compose up scala
docker-compose up node --build
docker-compose up scala --build
```
## Web
[http://0.0.0.0:9080/](http://0.0.0.0:9080/)
## nginx proxy config
```
server {
listen 80;
server_name laikazinas.lsm.lv;
location / {
proxy_pass http://localhost:9080; # Forward requests to the Scala app
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
```
## Local development
```
// 1st terminal
sbt
sbt run
// 2nd terminal
cd web/