Add function copy_static_files and clean directory

This commit is contained in:
2026-05-21 23:08:59 +02:00
committed by kitoy
parent bae713ed61
commit 824fcc9639
11 changed files with 4 additions and 5 deletions

3
.gitignore vendored
View File

@@ -1,7 +1,6 @@
__pycache__
app/static/img/fullsize
app/static/img/portfolio
*.pyc
*#
*~
app/config.py
users/

View File

@@ -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'))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 542 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB