Commit dbe218e9 authored by Kapilraj Thangeswaran's avatar Kapilraj Thangeswaran

Mise à jour run.sh et readme pour linux

parent 920f556b
...@@ -14,18 +14,19 @@ This module is able to extract data from a file in Hdoc format and insert them i ...@@ -14,18 +14,19 @@ This module is able to extract data from a file in Hdoc format and insert them i
## Dependencies ## Dependencies
In order to work properly this module needs : In order to work properly this module needs :
- to download and install Node.js - to download and install Node.js
For windows : - For windows :
- from the [Node.js download page](https://nodejs.org/en/) - from the [Node.js download page](https://nodejs.org/en/)
For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands : - For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands :
- `su` - `su`
- `apt install nodejs` - `apt install nodejs`
- `apt install node` - `apt install node`
- `apt install npm` - `apt install npm`
- `npm link mongodb` from hdoc_to_mongo folder
- to download and install MongoDB - to download and install MongoDB
For Windows : - For Windows :
- from the [MongoDB download page](https://www.mongodb.com/download-center#community) - from the [MongoDB download page](https://www.mongodb.com/download-center#community)
For linux : - For linux :
- `su & apt install mongodb` - `su & apt install mongodb`
## Instructions ## Instructions
......
...@@ -31,6 +31,4 @@ fi ...@@ -31,6 +31,4 @@ fi
#Lancer la commande #Lancer la commande
scJarList="$lib/*" scJarList="$lib/*"
npm link mongodb $vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam
$vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam \ No newline at end of file
rm -rf node_modules
...@@ -16,18 +16,19 @@ In order to work properly this module needs : ...@@ -16,18 +16,19 @@ In order to work properly this module needs :
- [`opale_to_hdoc`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/opale_to_hdoc) (Opale to Hdoc conversion) - [`opale_to_hdoc`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/opale_to_hdoc) (Opale to Hdoc conversion)
- [`hdoc_to_mongo`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_mongo) (Hdoc to Mongo conversion) - [`hdoc_to_mongo`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_mongo) (Hdoc to Mongo conversion)
- to download and install Node.js - to download and install Node.js
For windows : - For windows :
- from the [Node.js download page](https://nodejs.org/en/) - from the [Node.js download page](https://nodejs.org/en/)
For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands : - For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands :
- `su` - `su`
- `apt install nodejs` - `apt install nodejs`
- `apt install node` - `apt install node`
- `apt install npm` - `apt install npm`
- `npm link mongodb` from hdoc_to_mongo folder
- to download and install MongoDB - to download and install MongoDB
For Windows : - For Windows :
- from the [MongoDB download page](https://www.mongodb.com/download-center#community) - from the [MongoDB download page](https://www.mongodb.com/download-center#community)
For linux : - For linux :
- `su & apt install mongodb` - `su & apt install mongodb`
## Instructions ## Instructions
......
...@@ -31,6 +31,4 @@ fi ...@@ -31,6 +31,4 @@ fi
#Lancer la commande #Lancer la commande
scJarList="$lib/*" scJarList="$lib/*"
npm link mongodb $vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam
$vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam \ No newline at end of file
rm -rf node_modules
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment