Compare commits
17
Commits
nginx-proxy
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e441d3b5a | ||
|
|
3479fb6688 | ||
|
|
700a01a0d4 | ||
|
|
ed21394a25 | ||
|
|
1cf6a4ba1e | ||
|
|
fdf82583fe | ||
|
|
47ddbe61a5 | ||
|
|
8bd97b031a | ||
|
|
e125aaf39b | ||
|
|
b4328dca7b | ||
|
|
cabae621b7 | ||
|
|
24a6ff60f7 | ||
|
|
696ce52966 | ||
|
|
a0324a73ef | ||
|
|
2d291ac4e4 | ||
|
|
45b1d544d4 | ||
|
|
85c13ebf5d |
@@ -4,6 +4,14 @@
|
|||||||
|
|
||||||
echo "Creating GDP BaseX db"
|
echo "Creating GDP BaseX db"
|
||||||
basex "db:create('gdp','/srv/basex/src/gdp.tei.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})"
|
basex "db:create('gdp','/srv/basex/src/gdp.tei.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})"
|
||||||
|
# , 'serializer': 'indent=no'
|
||||||
|
|
||||||
|
echo "Creating FullText Index tmp file"
|
||||||
|
basex "xslt:transform(fn:doc('/srv/basex/src/gdp.tei.xml'), fn:doc('/srv/basex/src/xslt/generateFullTextIndex.xsl'))" > /tmp/gdpFtIndex.xml
|
||||||
|
|
||||||
|
echo "Creating FullText Index DB"
|
||||||
|
basex "db:create('gdpFtIndex', '/tmp/gdpFtIndex.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})"
|
||||||
|
# , 'serializer': 'indent=no'
|
||||||
|
|
||||||
# as we override the parent container CMD, we have to launch basexhttp here
|
# as we override the parent container CMD, we have to launch basexhttp here
|
||||||
echo "Launching basexhttp"
|
echo "Launching basexhttp"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ sudo pacman -S docker docker-compose docker-machine
|
|||||||
this will clone this repos (main docker environement) and necessary other source code (synopsx, webapp, xml-tei sources, vuejs client)
|
this will clone this repos (main docker environement) and necessary other source code (synopsx, webapp, xml-tei sources, vuejs client)
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-gdp.git
|
git clone --recursive https://figureslibres.io/gogs/bachir/docker-gdp.git
|
||||||
```
|
```
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
@@ -31,25 +31,39 @@ then each time you want to launch the app
|
|||||||
sudo docker-compose up -d
|
sudo docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## DB
|
|
||||||
<del>connect http://localhost:8984/synopsx/create-project</del>
|
|
||||||
|
|
||||||
<del>create a 'gdp' project</del>
|
|
||||||
|
|
||||||
<del>connect to http://localhost:8984/synopsx/config</del>
|
|
||||||
<del>select 'gpd' and click on 'ok'</del>
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
the api is ready, you can go to http://localhost:8984/gdp/home
|
the api is ready, you can go to http://localhost:8984/gdp/home
|
||||||
|
|
||||||
## Client
|
## Client
|
||||||
open http://localhost:8988 in your browser
|
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
|
||||||
to follow the webpack compilation process, run
|
to follow the webpack compilation process, run
|
||||||
```
|
```
|
||||||
sudo docker-compose logs -f
|
sudo docker-compose logs -f
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Update
|
||||||
|
update the code
|
||||||
|
```
|
||||||
|
git pull origin master
|
||||||
|
git pull --recurse-submodules
|
||||||
|
```
|
||||||
|
restart the containers
|
||||||
|
```
|
||||||
|
docker-compose restart basex
|
||||||
|
docker-compose restart client
|
||||||
|
```
|
||||||
|
or rebuild if data was updated
|
||||||
|
```
|
||||||
|
docker-compose up -d --build
|
||||||
|
```
|
||||||
|
|
||||||
## Doc
|
## Doc
|
||||||
|
|
||||||
https://github.com/guidesDeParis/webapp/blob/master/install.md
|
https://github.com/guidesDeParis/webapp/blob/master/install.md
|
||||||
|
|||||||
+1
-1
Submodule client updated: 01e4d99537...62bde64b7b
+1
-1
Submodule data updated: 423de0caf0...be38d679b6
+1
-1
Submodule synopsx updated: 558dd832a2...be50808d13
+1
-1
Submodule webapp updated: e6ca72b4a0...a22c918986
Reference in New Issue
Block a user