-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from protocolpaladin/main
Docker compose production ready
- Loading branch information
Showing
7 changed files
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Vérifie si la variable d'environnement est égale à 1 | ||
if [ "${INITIAL_DB}" = "EN" ]; then | ||
# Se déplace vers le répertoire /var/www/deming/ | ||
cd /var/www/deming/ | ||
# Exécute la commande | ||
php artisan migrate --seed | ||
# Exit avec le code 0 pour indiquer que le script s'est terminé avec succès | ||
exit 0 | ||
fi | ||
if [ "${INITIAL_DB}" = "FR" ]; then | ||
# Se déplace vers le répertoire /var/www/deming/ | ||
cd /var/www/deming/ | ||
# Exécute la commande | ||
LANG=fr php artisan migrate --seed | ||
# Exit avec le code 0 pour indiquer que le script s'est terminé avec succès | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Vérifie si la variable d'environnement est égale à 1 | ||
if [ "${RESET_DB}" = "EN" ]; then | ||
# Se déplace vers le répertoire /var/www/deming/ | ||
cd /var/www/deming/ | ||
# Exécute la commande | ||
php artisan migrate:fresh --seed | ||
# Exit avec le code 0 pour indiquer que le script s'est terminé avec succès | ||
exit 0 | ||
fi | ||
if [ "${RESET_DB}" = "FR" ]; then | ||
# Se déplace vers le répertoire /var/www/deming/ | ||
cd /var/www/deming/ | ||
# Exécute la commande | ||
LANG=fr php artisan migrate:fresh --seed | ||
# Exit avec le code 0 pour indiquer que le script s'est terminé avec succès | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Vérifie si la variable d'environnement est égale à 1 | ||
if [ "${UPLOAD_DB_ISO27001}" = "EN" ]; then | ||
# Se déplace vers le répertoire /var/www/deming/ | ||
cd /var/www/deming/ | ||
# Exécute la commande | ||
php artisan db:seed --class=AttributeSeeder | ||
php artisan db:seed --class=DomainSeeder | ||
php artisan db:seed --class=MeasureSeeder | ||
# Exit avec le code 0 pour indiquer que le script s'est terminé avec succès | ||
exit 0 | ||
fi | ||
if [ "${UPLOAD_DB_ISO27001}" = "FR" ]; then | ||
# Se déplace vers le répertoire /var/www/deming/ | ||
cd /var/www/deming/ | ||
# Exécute la commande | ||
LANG=fr php artisan db:seed --class=AttributeSeeder | ||
LANG=fr php artisan db:seed --class=DomainSeeder | ||
LANG=fr php artisan db:seed --class=MeasureSeeder | ||
# Exit avec le code 0 pour indiquer que le script s'est terminé avec succès | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Vérifie si la variable d'environnement USE_DEMO_DATA est égale à 1 | ||
if [ "${USE_DEMO_DATA}" = "1" ]; then | ||
# Se déplace vers le répertoire /var/www/deming/ | ||
cd /var/www/deming/ | ||
# Exécute la commande "php artisan deming:generateTests" | ||
php artisan deming:generateTests | ||
# Exit avec le code 0 pour indiquer que le script s'est terminé avec succès | ||
exit 0 | ||
fi |