This commit is contained in:
2020-07-14 16:52:12 +02:00
parent 12bad6c56f
commit 0ace942135
+7 -1
View File
@@ -46,7 +46,9 @@ open http://localhost:8988 in your browser
## Vhost or Cross Origins Policy
Cross origin poilicy will block the api requests from client
You'll need to install vhost domain for api and client, like dev.gdp.net and dev.api.gdp.net
Or in firefox install this addon to allow cors addons.mozilla.org/en-US/firefox/addon/cors-everywhere/
## Logs
@@ -78,9 +80,13 @@ docker-compose up -d [client | basex]
## Prod
run containers for prod
```docker-compose -f docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d```
```
docker-compose -f docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
```
client will be built the client container stop
basex container will stay up
you have to serve client/dist/index.html with your own webserver (e.g. nginx, apache, etc)
## Doc