File tree Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515# ##< friendsofphp/php-cs-fixer ###
1616
1717/node_modules /
18+ .env.local.database
Original file line number Diff line number Diff line change @@ -213,6 +213,12 @@ we decided to adhere to in this project.
213213 docker compose run --rm node yarn coding-standards-check
214214 ```
215215
216+ * Shell scripts
217+
218+ ``` sh
219+ docker run --rm --tty --volume " $PWD :/app" peterdavehello/shellcheck shellcheck /app/bin/fetch-data
220+ ```
221+
216222### Coding standards apply
217223
218224The following commands let you apply the coding standards
Original file line number Diff line number Diff line change 22set -o errexit -o errtrace -o noclobber -o nounset -o pipefail
33IFS=$' \n\t '
44
5- script_dir=$( cd $( dirname " ${BASH_SOURCE[0]} " ) && pwd)
6- project_dir=$( cd $( dirname " $script_dir " ) && pwd)
7- bold=$( tput -Txterm-256color bold)
8- normal=$( tput -Txterm-256color sgr0)
5+ script_dir=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
6+ project_dir=$( cd " $( dirname " $script_dir " ) " && pwd)
97
108cd " $project_dir "
119
@@ -24,14 +22,14 @@ for i in "${!database_urls[@]}"; do
2422 fi
2523done
2624
27- next_index=$(( ($ current_index+ 1 ) % "${# database_urls[@]} " ))
25+ next_index=$(( (current_index + 1 ) % "${# database_urls[@]} " ))
2826
2927next_database_url=" ${database_urls[$next_index]} "
3028
31- echo current_database_url: $current_database_url
32- echo current_index: $current_index
33- echo next_index: $next_index
34- echo next_database_url: $next_database_url
29+ echo current_database_url: " $current_database_url "
30+ echo current_index: " $current_index "
31+ echo next_database_url: " $next_database_url "
32+ echo next_index: " $next_index "
3533
3634docker compose exec --env DATABASE_URL=" $next_database_url " phpfpm bin/console doctrine:migrations:migrate --no-interaction
3735# @todo Fetch data
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ networks:
88
99services :
1010 phpfpm :
11- image : itkdev/php8.2 -fpm:alpine
11+ image : itkdev/php8.1 -fpm:alpine
1212 restart : unless-stopped
1313 networks :
1414 - app
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ services:
2121 # - ENCRYPT=1 # Uncomment to enable database encryption.
2222
2323 phpfpm :
24- image : itkdev/php8.2 -fpm:latest
24+ image : itkdev/php8.1 -fpm:latest
2525 networks :
2626 - app
2727 extra_hosts :
You can’t perform that action at this time.
0 commit comments