Fix in site generator

This commit is contained in:
Antonio de la Rosa 2020-02-16 00:44:31 +01:00
parent e4c20bc65b
commit 61c76e3031

View file

@ -74,7 +74,7 @@ def start():
try:
shutil.copy(workdir+'/frontend/index.py', args.path+'/app.py')
shutil.copy(workdir+'/frontend/app.py', args.path+'/app.py')
except:
@ -135,7 +135,7 @@ def start():
os.symlink(workdir, args.path+'/paramecio2/', True)
except:
print('Error: cannot symlink paramecio in new site')
print('Error: cannot symlink paramecio2 in new site')
with open(path_settings+'/config.py', 'r') as f:
conf=f.read()
@ -143,7 +143,7 @@ def start():
random_bytes = os.urandom(24)
secret_key_session = b64encode(random_bytes).decode('utf-8').strip()
conf=conf.replace('"im smoking fool"', secret_key_session)
conf=conf.replace('im smoking fool', secret_key_session)
#domain='localhost'