There are a number of helper scripts available. Most of them obey the
FS_INT env var. Default is
dev, you can also set it to
|./scripts/clean||Remove anything added by |
|./scripts/composer||Run php composer|
|./scripts/dev||Run webpack dev server for doing js dev (obsolete, included in |
|./scripts/docker-compose||Docker-compose with the correct options set for the environment|
|./scripts/dropdb||Drop the database|
|./scripts/fix||runs all fixing - code stuff (php)|
|./scripts/fix-codestyle-local||fix php code style, see php Code style|
|./scripts/inc.sh||defines functions needed in other scripts|
|./scripts/initdb||Create the database and run migrations|
|./scripts/lint||runs all lintings scripts lint-...|
|./scripts/lint-php||lints php files: prints errors etc.|
|./scripts/mkdirs||Create directories that need to be present (called by other scripts)|
|./scripts/rm||Shut down and clean up all containers|
|./scripts/seed||Run seed scripts in |
|./scripts/start||Start everything, initializing anything if needed, see Setting things up|
|./scripts/stop||Stop everything, but leave it configured see Setting things up|
|./scripts/test-chat||Run test for the chat|
|./scripts/test-js||Run test for the client (JS)|
|./scripts/test-rerun||Run tests without recreating db (faster that test)|
|./scripts/watch-assets||Builds the static assets on change|
docker-compose you can run various php-scripts, e.g.
./scripts/docker-compose run --rm --no-deps app php -f run.php Stats foodsaver ./scripts/docker-compose run --rm --no-deps app php -f run.php Stats betriebe ./scripts/docker-compose run --rm --no-deps app php -f run.php Stats bezirke
This runs the statistics scripts that are run nightly on the production server.
This can be necessary to test code concerning statistics since they are usually never run locally.
--rm removes the containers afterwards,
--no-deps lets docker not worry about any dependendent containers. This is often useful since they are often running already.