File tree Expand file tree Collapse file tree 4 files changed +8
-19
lines changed
Expand file tree Collapse file tree 4 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public function run()
2727 'email ' => 'admin@admin.localhost ' ,
2828 'password ' => bcrypt ('admin ' ),
2929 ]);
30+
3031 }
3132 }
3233}
Original file line number Diff line number Diff line change @@ -6,15 +6,9 @@ services:
66 environment :
77 # ## PLEASE DISABLE AFTER THE FIRST RUN FOR OPTIMIZATION PRODUCTION
88 - DB_SLEEP=10
9- # ## PLEASE DISABLE FOR PRODUCTION
10- # - USE_DEMO_DATA=0
11- # ## PLEASE DISABLE FOR PRODUCTION
12- # ## PLEASE AFTER ONE RUN DISABLE FOR OPTIMIZATION
13- # - UPLOAD_DB_ISO27001=FR #EN OR FR
14- # - APP_BANNER_TEST=false
15- # ## PLEASE AFTER ONE RUN DISABLE FOR OPTIMIZATION
16- # - INITIAL_DB=FR #EN OR FR
9+ # Default timezone
1710 - TZ=Europe/Paris
11+ # Default db connexion
1812 - DB_HOST=mysql
1913 - APP_ENV=local
2014 - DB_DATABASE=deming
Original file line number Diff line number Diff line change 22
33echo " Initialize database"
44
5+ # Migarte the database
56php artisan migrate
67
7- if [ " ${INITIAL_DB} " = " EN" ]; then
8- php artisan db:seed --class=DatabaseSeeder
9- elif [ " ${INITIAL_DB} " = " FR" ]; then
10- LANG=fr php artisan db:seed --class=DatabaseSeeder
11- else
12- echo " WARNING: INITIAL_DB='${INITIAL_DB} ' non reconnu (EN ou FR attendu)."
13- exit 1
14- fi
15-
8+ # Create the admin user if it does not exist
9+ php artisan db:seed --class=DatabaseSeeder
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ if [ "${RESET_DB}" = "EN" ]; then
2222 # Se déplace vers le répertoire /var/www/deming/
2323 cd /var/www/deming/
2424 # Exécute la commande
25- php artisan migrate:fresh --seed --force
25+ php artisan migrate:fresh --seed
2626 # Exit avec le code 0 pour indiquer que le script s'est terminé avec succès
2727 exit 0
2828fi
2929if [ " ${RESET_DB} " = " FR" ]; then
3030 # Se déplace vers le répertoire /var/www/deming/
3131 cd /var/www/deming/
3232 # Exécute la commande
33- LANG=fr php artisan migrate:fresh --seed --force
33+ LANG=fr php artisan migrate:fresh --seed
3434 # Exit avec le code 0 pour indiquer que le script s'est terminé avec succès
3535 exit 0
3636fi
You can’t perform that action at this time.
0 commit comments