Projekt

Obecné

Profil

Stáhnout (499 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 2d82649d Vaclav Honzik
import os
2
# Script to create developer .env file
3
# Run this in root folder of the project
4
5
6
file_name = '.env'
7
print('Setting the environment for production')
8
if os.path.exists(file_name):
9
    print('.env file already exists, deleting ...')
10
    os.remove(file_name)
11
12
with open(file_name, 'w+') as file:
13
    file.writelines([
14
        'REACT_APP_API_BASE_URL=/api\n',
15
        'REACT_APP_DEV_ENV=false\n'
16 41a11178 Vaclav Honzik
    ])
17
18
print('File created. The environment has been successfully configured for development.')