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 ## Vhost or Cross Origins Policy
Cross origin poilicy will block the api requests from client 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 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/ Or in firefox install this addon to allow cors addons.mozilla.org/en-US/firefox/addon/cors-everywhere/
## Logs ## Logs
@@ -78,9 +80,13 @@ docker-compose up -d [client | basex]
## Prod ## Prod
run containers for 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 client will be built the client container stop
basex container will stay up basex container will stay up
you have to serve client/dist/index.html with your own webserver (e.g. nginx, apache, etc) you have to serve client/dist/index.html with your own webserver (e.g. nginx, apache, etc)
## Doc ## Doc