Go to file
2024-02-14 09:56:09 +01:00
.changes update composer.lock and file (automatic update) 2024-02-13 13:39:25 +00:00
.gitea/workflows/release restore release workflow 2023-11-22 15:33:33 +00:00
.vscode initial commit 2022-07-11 21:32:20 +02:00
assets Upgrade recipes: symfony/webpack-encore-bundle 2023-12-12 16:25:04 +01:00
bin Upgrade recipes: symfony/console 2023-12-12 16:24:38 +01:00
config update recipes symfony/monolog-bundle 2024-02-14 09:56:09 +01:00
docker initial commit 2022-07-11 21:32:20 +02:00
migrations initial commit 2022-07-11 21:32:20 +02:00
public Upgrade recipes: symfony/framework 2023-12-12 16:25:00 +01:00
src Upgrade recipes: symfony/framework 2023-12-12 16:25:00 +01:00
templates/api reset templates while upgrade 2023-12-12 16:24:03 +01:00
tests Upgrade recipes: symfony/phpunit-bridge 2023-12-12 16:25:02 +01:00
translations make sure translations directory is kept 2024-02-12 18:31:06 +01:00
.changie.yaml Integrate changie and create a workflow for publishing app 2023-11-19 21:55:02 +01:00
.dockerignore initial commit 2022-07-11 21:32:20 +02:00
.drone.yml upgrade to node 20 2024-02-09 00:00:13 +01:00
.editorconfig initial commit 2022-07-11 21:32:20 +02:00
.env Upgrade recipes: symfony/messenger 2023-12-12 16:25:02 +01:00
.env.dev configure var-dump server in docker stack 2024-02-14 09:43:25 +01:00
.env.prod include env files in skeleton 2022-07-11 22:03:15 +02:00
.env.test Upgrade recipes: phpunit/phpunit 2023-12-12 16:24:21 +01:00
.gitignore symfony recipes: update phpstan/phpstan recipes 2023-12-12 16:49:52 +01:00
.gitlab-ci.yml initial commit 2022-07-11 21:32:20 +02:00
CHANGELOG.md update composer.lock and file (automatic update) 2024-02-13 13:39:25 +00:00
composer.json upgrade composer 2024-02-13 20:55:05 +01:00
composer.lock upgrade composer 2024-02-13 20:55:05 +01:00
docker-compose.dev.yml adapt Makefile and rename chill_php occurences by chill_php82 2023-02-08 09:36:41 +01:00
docker-compose.override.dev.template.yml configure var-dump server in docker stack 2024-02-14 09:43:25 +01:00
docker-compose.prod.yml adapt Makefile and rename chill_php occurences by chill_php82 2023-02-08 09:36:41 +01:00
docker-compose.yml adapt Makefile and rename chill_php occurences by chill_php82 2023-02-08 09:36:41 +01:00
docker-node.sh upgrade to node 20 2024-02-09 00:00:13 +01:00
docker-php.sh initial commit 2022-07-11 21:32:20 +02:00
Dockerfile Revert "remove gd deps" 2023-02-08 09:36:41 +01:00
entrypoint.sh Feature: trigger migration automatically only in prod mode 2023-01-13 13:26:10 +01:00
LICENSE initial commit 2022-07-11 21:32:20 +02:00
Makefile update yarn.lock and makefile to use node 20 and upgrade vue 2024-02-13 14:37:18 +01:00
package.json better restriction for bootstrap version and release 1.4.3 2024-02-08 22:38:38 +01:00
phpdoc.dist.xml initial commit 2022-07-11 21:32:20 +02:00
phpstan.dist.neon symfony recipes: update phpstan/phpstan recipes 2023-12-12 16:49:52 +01:00
phpunit.xml.dist Upgrade recipes: symfony/phpunit-bridge 2023-12-12 16:25:02 +01:00
README.md initial commit 2022-07-11 21:32:20 +02:00
symfony.lock update recipes symfony/monolog-bundle 2024-02-14 09:56:09 +01:00
tsconfig.json Deploy: upgrade chill bundles and adapt skeleton 2022-12-24 15:40:18 +01:00
webpack.config.js Upgrade recipes: symfony/webpack-encore-bundle 2023-12-12 16:25:04 +01:00
yarn.lock update yarn.lock and makefile to use node 20 and upgrade vue 2024-02-13 14:37:18 +01:00

Chill - Standard Project

This is the basic project you must install first in order to install Chill software.

The installation process is documented here: http://docs.chill.social/en/latest/installation/index.html (current versions lives at https://gitlab.com/Chill-Projet/chill-bundles/-/tree/master/docs)


Installation

Suivre la procédure https://chill.readthedocs.io/en/latest/installation/index.html

En cas de problème évoquant VCS et vendor/chill-project/chill-bundles faire un git clone de https://gitlab.com/Chill-Projet/chill-bundles vers le répertoire vendor/chill-project/chill-bundles.

Migrations de la db

Les fichiers de migrations qui sont dans les modules Chill sont maintenant automatiquement détectés par Symfony.

php bin/console doctrine:migrations:migrate

Chargement des fixtures

Pour charger des fixtures, vous pouvez utiliser la commande php bin/console doctrine:fixtures:load qui peuple la db pour le développement.

Attention il y a besoin d'une connexion internet pour Geographical Unit.

Erreur connue : pas de données modifiées dans la db

Augmenter le memory_limit afin d'arriver à la fin de la procédure (sinon la procédure s'arrête sans message d'erreur).

Actuellement les dernières fixtures à charger sont :

   > loading Chill\PersonBundle\DataFixtures\ORM\LoadAccompanyingPeriodNotifications
   > loading Chill\PersonBundle\DataFixtures\ORM\LoadAccompanyingPeriodWork
   > loading Chill\ActivityBundle\DataFixtures\ORM\LoadActivityNotifications
   > loading Chill\AsideActivityBundle\DataFixtures\ORM\LoadAsideActivity
   > loading Chill\ThirdPartyBundle\DataFixtures\ORM\LoadThirdParty
   > loading App\DataFixtures\LoadHouseholdAddress

Enable collabora

The file docker-compose.dev.yml add configuration for use with collabora CODE. To use this, you must add those lines to your /etc/hosts file:

127.0.0.1       nginx collabora

Then, you call:

The collabora's admin panel is reachable at http://collabora:9980/loleaflet/dist/admin/admin.html

Alternative: chargement d'un dump de la db

Pour importer directement un sql peuplé pour le développement, un postgres.db.sql se trouve à la racine du dépôt.

$ docker cp postgres.db.sql fb9290290f50:/tmp/
$ docker-compose exec --user postgres db bash
postgres@fb9290290f50:/$ psql postgres < /tmp/postgres.db.sql

où fb9290290f50 est l'id du container de la db (de l'image postgres:12).

Gérer le problème de memory_limit de manière générale

  • générer une copie du php.ini (docker cp XXX_CONTAINER_PHP_ID_XXX:/usr/local/etc/php/php.ini-development php.ini-dev)

  • éditer le fichier et choisissez la valeur du paramètre memory_limit (par exemple memory_limit = 5G)

  • mettre à jour le docker-compose.yml afin que la copie modifiée du php.ini écrase /usr/local/etc/php/php.ini :

    services:
    php: &php-definition
      ...
      volumes:
        ...
        - ./php.ini-dev:/usr/local/etc/php/php.ini
    

Problèmes connus

Operation not permitted: '/var/lib/pgadmin' You may need to manually set the permissions on /var/lib/pgadmin to allow pgadmin to write to it.

Modifier les droits sur le dossier .pgadmin:

chown 5050:5050 -R .pgadmin4

Erreurs lors de la création de la bd (peut-être dû à une utilisation de Chill antérieure)

docker-compose exec --user postgres db bash
postgres@fb9290290f50:/$ psql

create database test;
\c test
drop database postgres;
create database postgres;
\c postgres
drop database test;

Puis refaire l'import du dump sql