Skip to content

Commit c48f778

Browse files
authored
Update console_commands.md
1 parent 616aad6 commit c48f778

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/usage/console_commands.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ is named `partdb`, you can execute the command `php bin/console cache:clear` wit
2525
docker exec --user=www-data partdb php bin/console cache:clear
2626
```
2727

28+
{: .warning }
29+
> If you run a root console inside the docker container, and wanna execute commands on the webserver behalf, be sure to use `sudo -E` command (with the `-E` flag) to preserve env variables from the current shell.
30+
> Otherwise Part-DB console might use the wrong configuration to execute commands.
31+
32+
## Troubleshooting
33+
2834
## User management commands
2935

3036
* `php bin/console partdb:users:list`: List all users of this Part-DB instance
@@ -64,4 +70,4 @@ docker exec --user=www-data partdb php bin/console cache:clear
6470
## Database commands
6571

6672
* `php bin/console doctrine:migrations:migrate`: Migrate the database to the latest version
67-
* `php bin/console doctrine:migrations:up-to-date`: Check if the database is up-to-date
73+
* `php bin/console doctrine:migrations:up-to-date`: Check if the database is up-to-date

0 commit comments

Comments
 (0)