author | ymh <ymh.work@gmail.com> |
Mon, 17 Oct 2016 18:07:53 +0200 | |
changeset 346 | 4cd0f8c936ed |
parent 28 | b0b56e0f8c7f |
child 368 | 5f79f31ca9a2 |
permissions | -rw-r--r-- |
28 | 1 |
# Projet Corpus de la parole |
2 |
||
3 |
## Prérequis |
|
4 |
- Vagrant |
|
5 |
- Ansible |
|
6 |
- node |
|
7 |
||
8 |
## Lancement VM dev |
|
9 |
- `cd /dev` |
|
10 |
- `cp provisioning/custom.yaml.tmpl provisioning/custom.yaml` |
|
11 |
- édition de `provisioning/custom.yaml` |
|
12 |
- `vagrant up` (nécessite une connexion internet) |
|
13 |
- url : http://vhost/corpus |
|
14 |
- accès sesame workbench : http://vhost:8080/openrdf-workbench |
|
15 |
- chargement des données dans `corpus` et `corpus_raw` |
|
16 |
||
17 |
## Lancement VM de build |
|
18 |
- Activation Ansible |
|
19 |
- `cd /build` |
|
20 |
- `vagrant up` |
|
21 |
||
22 |
## Initialisation env de dev |
|
23 |
- `cd /server/bo_client` |
|
24 |
- `npm install` |
|
25 |
- `bower install` |
|
26 |
- `cd /server/src` |
|
27 |
- télécharger composer.phar (https://getcomposer.org/) et le mettre dans le répertoire server/src |
|
28 |
- `php composer.phar install` |
|
29 |
- `npm install` |
|
30 |
- `bower install` |
|
31 |
||
32 |
## Commandes bo_client |
|
33 |
- `ember serve` |
|
34 |
- `ember build` -> résultat dans `server/bo_client/dist` |
|
35 |
||
36 |
## Commandes serveur php |
|
37 |
- Compilation css/js : `gulp` -> cette commande lance `ember build` de `/server/bo_client` |
|
38 |
- `php artisan serve` |
|
39 |
||
40 |
## Creation de version |
|
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
41 |
- mettre à jour le fichier version `server/src/config/config/version.php` |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
42 |
- mettre à jour le fichier version `cms/app-client/package.json` |
28 | 43 |
- `cd /server/src` |
44 |
- s'assurer que les sources sont à jour: `php composer.phar install` + `npm install` + `bower install` |
|
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
45 |
- `gulp copy-build` |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
46 |
- `cd /cms/app-client` |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
47 |
- `npm install` |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
48 |
- `bower install` |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
49 |
- `ember build --prod` ou `ember build` |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
50 |
- `cd /cms` |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
51 |
- `npm install` pour installer gulp + dépendances |
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
52 |
- `gulp copy-build` |
28 | 53 |
- `cd /build` |
54 |
- `vagrant ssh -c "/vagrant/build_rpm.sh"` |
|
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
55 |
- le fichier rpm se trouvera dans `/build/dist` |
28 | 56 |
|
57 |
## installation rpm sur serveur |
|
58 |
- 1ère installation: `rpm -i /path/to/corpusdelaparole-<version>-<build>.rpm` |
|
59 |
- Mise à jour: `rpm -U /path/to/corpusdelaparole-<version>-<build>.rpm` |
|
60 |
- ensuite : création diu fichier `/etc/www/corpus_env.conf` |
|
346
4cd0f8c936ed
upgrade build and delivery process for integration
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
61 |
- après un update : drush cc all |