This commit is contained in:
Xavier Fiechter 2024-06-06 17:01:38 +02:00
parent 9471c2c2ae
commit 7f13c702b0
2 changed files with 0 additions and 5 deletions

View file

@ -23,7 +23,6 @@ def generate_config_file(config_file_path="config.ini"):
database_password = os.getenv("MYSQL_PASSWORD")
crypto_salt = 'labelbase_{}_'.format(generate_random_string(32))
# Set the values in the configuration file
config['internal'] = {
'secret_key': '{}'.format(dj_secret_key),
'proj_name': 'labelbase',
@ -41,13 +40,11 @@ def generate_config_file(config_file_path="config.ini"):
# 'host': '127.0.0.1'
}
# Create the configuration file and write the values
with open(config_file_path, 'w') as configfile:
config.write(configfile)
if __name__ == "__main__":
# Check if the config.ini file exists
if not os.path.isfile(config_file_path):
generate_config_file()
print("Config file {} created.".format(config_file_path))

View file

@ -1,5 +1,3 @@
version: "3.7"
services:
labelbase_mysql:
build: