[PATCH 06 of 10 saem_ref] [doc] Update install and upgrade procedure

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Apr 11 11:33:07 CEST 2017



Le 11/04/2017 à 09:27, Denis Laxalde a écrit :
> Sylvain Thenault a écrit :
>
>> +Par la suite, nous supposerons que vous tapez les commandes
>> indiquées en tant qu'utilisateur
>> +`saemref` et avec le *virtualenv* activé.
>> +
>> +Installer le référentiel :
>> +
>> +::
>> +
>> +    pip install cubicweb-saem-ref
>> +
>> +
>>  Création de l'instance
>>  ----------------------
>>
>>  Une fois le cube saem_ref et ses dépendances installées, il reste à
>> créer une
>>  instance de celui-ci :
>>
>>  ::
>>
>> -  cubicweb-ctl create saem_ref saem_ref
>> +  CW_MODE=user cubicweb-ctl create saem_ref saemref
>
> Still don't get why CW_MODE=user is needed. Maybe it's for instances
> directory, in which case advising about setting CW_INSTANCES_DIR
> environment variable in one's .bashrc might be a better idea.

I agree this clutters things a bit but for now it's consistently used in
the documentation. Can we keep this for a follow-up ?

>> +::
>> +
>> +   salt srv state.sls db-create
>> +
>
> In many case, this state will fail because the user running db-create
> cubicweb command will not have permission to create a database on the
> database server.

Regarding this comment and the one below, I've translated the doc from
the saemref-formula and would appreciate help to enhance this.
>
>> +Pour finir l'installation puis lancer l'application, exécuter :
>> +
>> +::
>> +
>> +    salt srv state.highstate
>> +    ssh saemref at srv supervisorctl start saemref saemref-oai
>> +
>
> Why the second command? Doesn't highstate handle this?
>
>

I fixed typos, thanks.

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list