| ... | ... | @@ -14,11 +14,11 @@ $ git commit |
|
|
|
$ git push origin
|
|
|
|
```
|
|
|
|
|
|
|
|
### Étape 2 : sur adl-dev@agendadulibre.qc.ca
|
|
|
|
### Étape 2 : mise en préprod sur adl-dev@agendadulibre.qc.ca
|
|
|
|
|
|
|
|
Avant tout, en profiter pour mettre à jour la version de Ruby :
|
|
|
|
```
|
|
|
|
$ cd /home/adl-dev/.rbenv/plugins/ruby-build && git pull && cd -
|
|
|
|
$ cd ~/.rbenv/plugins/ruby-build && git pull && cd -
|
|
|
|
$ rbenv install --list
|
|
|
|
$ rbenv install <dernière version stable>
|
|
|
|
$ rbenv global <dernière version stable>
|
| ... | ... | @@ -44,3 +44,9 @@ $ bundle exec rake assets:precompile |
|
|
|
$ bundle exec rails s
|
|
|
|
```
|
|
|
|
Ajouter le forwarding du port 3000 (`~C -L 3000:localhost:3000`) puis valider que tout est ok en allant sur http://localhost:3000/.
|
|
|
|
|
|
|
|
### Étape 3 : mise en production sur adl-prod@agendadulibre.qc.ca
|
|
|
|
|
|
|
|
Après avoir bien vérifier que tout marche bien en préprod, on peut mettre en production.
|
|
|
|
|
|
|
|
Les étapes sont exactement les mêmes qu'à l'étape 2. |
|
|
\ No newline at end of file |