|
|
@ -216,7 +216,7 @@ updated in the future releases. However, the list
|
|
|
|
Finally, you need to set up a database. Switch to `/opt/recodex-core` directory
|
|
|
|
Finally, you need to set up a database. Switch to `/opt/recodex-core` directory
|
|
|
|
(that is **important**) and execute
|
|
|
|
(that is **important**) and execute
|
|
|
|
```
|
|
|
|
```
|
|
|
|
# su -c 'php www/index.php migrations:migrate' recodex
|
|
|
|
# su -c './bin/console migrations:migrate' recodex
|
|
|
|
```
|
|
|
|
```
|
|
|
|
You may see warnings that some migrations did not execute any SQL statements,
|
|
|
|
You may see warnings that some migrations did not execute any SQL statements,
|
|
|
|
which is all right since there are no data in the DB yet. However, the whole
|
|
|
|
which is all right since there are no data in the DB yet. However, the whole
|
|
|
@ -257,7 +257,7 @@ from `debug` to `info` for broker and monitor (and do not forget to restart the
|
|
|
|
|
|
|
|
|
|
|
|
It is also recommended that you fill in the initial data into the database:
|
|
|
|
It is also recommended that you fill in the initial data into the database:
|
|
|
|
```
|
|
|
|
```
|
|
|
|
# su -c 'php www/index.php db:fill init' recodex
|
|
|
|
# su -c './bin/console db:fill init' recodex
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
After executing the fill command the database will contain:
|
|
|
|
After executing the fill command the database will contain:
|
|
|
@ -277,7 +277,7 @@ an alternative.
|
|
|
|
Finally, there are several commands that should be executed periodically.
|
|
|
|
Finally, there are several commands that should be executed periodically.
|
|
|
|
All commands are executed similarly as db commands we used earlier:
|
|
|
|
All commands are executed similarly as db commands we used earlier:
|
|
|
|
```
|
|
|
|
```
|
|
|
|
php /opt/recodex-core/www/index.php command:name
|
|
|
|
/opt/recodex-core/bin/console command:name
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
The important commands are
|
|
|
|
The important commands are
|
|
|
@ -289,7 +289,7 @@ The important commands are
|
|
|
|
* `db:cleanup:uploads` will remove old uploaded files
|
|
|
|
* `db:cleanup:uploads` will remove old uploaded files
|
|
|
|
* `db:cleanup:localized-texts` will remove old texts of groups and exercises
|
|
|
|
* `db:cleanup:localized-texts` will remove old texts of groups and exercises
|
|
|
|
* `db:cleanup:exercise-configs` will remove old exercise configs
|
|
|
|
* `db:cleanup:exercise-configs` will remove old exercise configs
|
|
|
|
* `db:cleanup:db:cleanup:exercise-files` will remove unused files (attachments and test files) of deleted exercises/assignments and pipelines
|
|
|
|
* `db:cleanup:exercise-files` will remove unused files (attachments and test files) of deleted exercises/assignments and pipelines
|
|
|
|
* `db:cleanup:pipeline-configs` will remove old pipeline configs
|
|
|
|
* `db:cleanup:pipeline-configs` will remove old pipeline configs
|
|
|
|
* `users:remove-inactive` will soft-delete and anonymize users who are deemed
|
|
|
|
* `users:remove-inactive` will soft-delete and anonymize users who are deemed
|
|
|
|
inactive (i.e., they have not verified their credentials for a period of time
|
|
|
|
inactive (i.e., they have not verified their credentials for a period of time
|
|
|
|