Projekt

Obecné

Profil

Stáhnout (506 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
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 development')
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=true\n'
16
        ])
17
    
18
print('File created. The environment has been successfully configured for development.')
(5-5/9)