Add function copy_static_files and clean directory
@@ -443,7 +443,7 @@ def publish():
|
||||
myblocs=myblocs)
|
||||
|
||||
db.writeHTML(theme, '/', htmlExport)
|
||||
|
||||
db.copy_static_files()
|
||||
|
||||
if serverPort == '' or serverPort.isdigit() == False :
|
||||
serverPort = '22'
|
||||
@@ -456,8 +456,8 @@ def publish():
|
||||
folder = '/'
|
||||
|
||||
|
||||
if db.publish(username, password, serverAddress, serverPort, folder) == False:
|
||||
return make_response(('Impossible de publier le site ', 500))
|
||||
#if db.publish(username, password, serverAddress, serverPort, folder) == False:
|
||||
# return make_response(('Impossible de publier le site ', 500))
|
||||
|
||||
|
||||
return redirect(url_for('edit'))
|
||||
|
||||
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 244 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 293 KiB |
|
Before Width: | Height: | Size: 542 KiB |
|
Before Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 130 KiB |