Commit 0709eead authored by Arnaud Bey's avatar Arnaud Bey
Browse files

fix documentation

parent fff8e760
......@@ -31,34 +31,38 @@ Notes
* if you let default values, MW should be available at localhost:666 and the adminer at localhost:667
* You'd better leave default values, some stuff is hardcoded...
* Once application installed, you can generate some grid with these commands in the php container. It will generates 10 grids in french and english with at least 150 (and 250 for french) foundable forms.
Import lexicon
------
copy `lexicon.tsv` and `spec.txt` in a new folder in `application/data/lexicons`
(some ready to use scripts are available in the `script/` folder.)
```
php bin/console magicword:generate-grid english 10 150 0
php bin/console magicword:generate-grid french 10 250 0
sudo docker-compose exec apache bash
console lexicon:import FOLDERNAME
```
Update
Grid generation
------
Once application installed, you can generate some grids with this command in the apache container. It will generates 10 grids with at least 150 foundable forms. (you will be prompted to enter a lexicon ID)
```
git pull origin master
sudo docker-compose up --build -d
sudo docker-compose exec php bash
make update
php bin/console magicword:generate-grid 10 150 0
```
Import lexicon
Update
------
copy `lexicon.tsv` and `spec.txt` in a new folder in `application/data/lexicons`
```
sudo docker-compose exec php bash
console lexicon:import FOLDERNAME
git pull origin master
sudo docker-compose up --build -d
sudo docker-compose exec apache bash
make update
```
Create Administrator
--------------------
To have an administrator of your Magic Word instance,
1. you first need to create an account on the site, like any other account.
2. then launch php container `sudo docker-compose exec php bash`
2. then launch php container `sudo docker-compose exec apache bash`
3. in that container type `php bin/console fos:user:promote`
1. enter the screen name of the account to promote
1. submit the role `ROLE_ADMIN`
1. enter the screen name of the account to promote
1. submit the role `ROLE_ADMIN`
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