mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
updated documentation
This commit is contained in:
parent
7140571d63
commit
eb8ed8bf92
@ -103,41 +103,21 @@ This script will guide you through the installation process by checking the requ
|
|||||||
Below, you'll find a collection of useful commands to control your instance with docker-compose.
|
Below, you'll find a collection of useful commands to control your instance with docker-compose.
|
||||||
Before using any of these commands, you must first `cd` into the app directory.
|
Before using any of these commands, you must first `cd` into the app directory.
|
||||||
|
|
||||||
- Restart app
|
- Read again the environment variables and restart
|
||||||
```bash
|
```bash
|
||||||
docker-compose restart fabmanager
|
docker-compose down && docker-compose up -d
|
||||||
```
|
```
|
||||||
- Remove app
|
- Open a bash prompt in the app context
|
||||||
```bash
|
```bash
|
||||||
docker-compose down fabmanager
|
docker-compose exec fabmanager bash
|
||||||
```
|
|
||||||
- Restart all containers
|
|
||||||
```bash
|
|
||||||
docker-compose restart
|
|
||||||
```
|
|
||||||
- Remove all containers
|
|
||||||
```bash
|
|
||||||
docker-compose down
|
|
||||||
```
|
|
||||||
- Start all containers
|
|
||||||
```bash
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
|
||||||
- Open a bash in the app context
|
|
||||||
```bash
|
|
||||||
docker-compose run --rm fabmanager bash
|
|
||||||
```
|
```
|
||||||
- Show services status
|
- Show services status
|
||||||
```bash
|
```bash
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
```
|
```
|
||||||
- Restart nginx container
|
|
||||||
```bash
|
|
||||||
docker-compose restart nginx
|
|
||||||
```
|
|
||||||
- Example of command passing env variables
|
- Example of command passing env variables
|
||||||
```bash
|
```bash
|
||||||
docker-compose run --rm -e ADMIN_EMAIL=xxx -e ADMIN_PASSWORD=xxx fabmanager bundle exec rails db:seed
|
docker-compose run --rm -e VAR1=xxx -e VAR2=xxx fabmanager bundle exec rails my:command
|
||||||
```
|
```
|
||||||
<a name="update-fabmanager"></a>
|
<a name="update-fabmanager"></a>
|
||||||
## Update Fab-manager
|
## Update Fab-manager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user