1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

modifs and try fix steps of update part

This commit is contained in:
Nicolas Florentin 2017-07-20 17:49:18 +02:00
parent cba2751a8a
commit 5cddf8d16d

View File

@ -259,47 +259,46 @@ sudo systemctl start letsencrypt.timer
## Fabmanager update
*This procedure updates fabmanager to the last version by default.*
*This procedure updates fabmanager to the most recent version by default.*
### Steps
When a new version is available, this is how to update fabmanager app in a production environment, using docker-compose :
1. go to your app folder
`cd fabmananger`
`cd fabmananger`
2. pull last docker images
`docker-compose pull`
`docker-compose pull`
3. stop the app
`docker-compose stop fabmanager`
`docker-compose stop fabmanager`
4. remove old assets
`sudo rm -Rf public/assets/`
`sudo rm -Rf public/assets/`
5. compile new assets
`docker-compose run --rm fabmanager bundle exec rake assets:precompile`
`docker-compose run --rm fabmanager bundle exec rake assets:precompile`
6. run specific commands
Do not forget to check if there are commands to run for your upgrade. Those commands
are always specified in the [CHANGELOG](https://github.com/LaCasemate/fab-manager/blob/master/CHANGELOG.md) and prefixed by *[TODO DEPLOY]*.
They are also present in the [release pages](https://github.com/LaCasemate/fab-manager/releases).
**Do not forget** to check if there are commands to run for your upgrade. Those commands
are always specified in the [CHANGELOG](https://github.com/LaCasemate/fab-manager/blob/master/CHANGELOG.md) and prefixed by **[TODO DEPLOY]**.
They are also present in the [releases page](https://github.com/LaCasemate/fab-manager/releases).
They execute specific tasks so they can't be automatic and have to be run by hand.
Those commands execute specific tasks and have to be run by hand.
7. restart all containers
```bash
docker-compose down
docker-compose up -d
```
```bash
docker-compose down
docker-compose up -d
```
You can check that all containers are running with `docker ps`.