File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# - then run codegen for router and processors
1616# - run migrations
1717
18+ CONFIG=$( find " /config" -maxdepth 1 -name " *.config.php" | head -n 1) ;
19+ if [ -f " $CONFIG " ]; then
20+ mv " $CONFIG " " /app/config/mocking.development.config.php" ;
21+ fi
1822
19-
20- DIRECTORY=" /api"
21- FILE=$( find " $DIRECTORY " -maxdepth 1 -name " *.yaml" -o -name " *.yml" -o -name " *.json" | head -n 1)
22-
23- echo -n $FILE > /app/config/openapi-file
24-
25- if ! [ -f " $FILE " ]; then
23+ API=$( find " /api" -maxdepth 1 -name " *.yaml" -o -name " *.yml" -o -name " *.json" | head -n 1) ;
24+ if ! [ -f " $API " ]; then
2625 echo " Your OpenAPI must be mounted in $DIRECTORY " ;
2726 exit 1;
2827fi
2928
30- if ! /app/bin/validate-user-api $FILE ; then
29+ if ! /app/bin/validate-user-api $API ; then
3130 exit 1;
3231fi
3332
34- if ! /app/bin/codegen $FILE ; then
33+ if ! /app/bin/codegen $API ; then
3534 exit 1;
3635fi
3736
You can’t perform that action at this time.
0 commit comments