infinito/administration/README.md

4.4 KiB

Administration

You MUST document all administration scripts in this file

In this folder you will find all necessary scripts to run and configure the application. The purpose of this scripts is to automize the administration process and help programmers to speed up their development and reduce the administration tasks of them.

Requirements

This scripts are optimized for Ubuntu, but may they will run on MAC OS.

Tested on a Ubuntu 18.04.1 LTS machine.

Initialization

To initialize the docker environment, please execute in the root:

bash administration/init.sh

Afterwards you can access the service via http://127.0.0.1:80.

Scripts

build.sh

This script builds the docker-compose environment and sets it up.

cleanup-ignored.sh

This script removes all files and folders which are ignored by git. Be careful with using it.

ATTENTION: You MUST study this script before you execute it!

clear.sh

This folder clears the productive and environment cache of the Symfony application.

composer-update.sh

This script updates the composer components.

copy-configuration.sh

This script copies the .env.dist files to the right locations.

format-code.sh

This script formats the PHP code with PHP-CS-Fixer.

generate-coverage-report.sh

This script generates a coverage report with PHPUnit.

init.sh

This script initialize the whole environment to let the application run local.

load-fixtures.sh

This script loads the Doctrine Fixtures.

mysql.sh

This script offers a CLI to interact with the database.

node-container-cli.sh

This script offers a CLI to interact with the node container.

recreate-database.sh

This script drops and creates the database.

router.sh

This script shows the possible Symfony routes.

schema-update.sh

This script updates the database schema based on Doctrines ORM

schema-validate.sh

This script validates the database schema based on Doctrines ORM

services.sh

This script shows the possible Symfony services.

schema-validate.sh

This script validates the administration scripts with shellcheck

start.sh

This script starts the local instance of the software. It can just be executed in an initialized environment.

stop.sh

This script stops the local instance of the software.

submodule.sh

This script pulls the git submodules.

submodule-init.sh

This script initializes the git submodules.

submodule-sync.sh

This script synchronizes the git submodules.

symfony-container-cli.sh

This script offers a cli for the symfony container.

test-code-format.sh

This script tests if the PHP code is formated well.

test-everything.sh

This script tests if all of the other test scripts succeed.

test.sh

This script executes the following tests of PHPUnit:

total-clean.sh

This script tests cleans all data of the local environment.

ATTENTION: You MUST study this script before you execute it!