Add function copy_static_files and clean directory
3
.gitignore
vendored
@@ -1,7 +1,6 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
app/static/img/fullsize
|
|
||||||
app/static/img/portfolio
|
|
||||||
*.pyc
|
*.pyc
|
||||||
*#
|
*#
|
||||||
*~
|
*~
|
||||||
app/config.py
|
app/config.py
|
||||||
|
users/
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ def publish():
|
|||||||
myblocs=myblocs)
|
myblocs=myblocs)
|
||||||
|
|
||||||
db.writeHTML(theme, '/', htmlExport)
|
db.writeHTML(theme, '/', htmlExport)
|
||||||
|
db.copy_static_files()
|
||||||
|
|
||||||
if serverPort == '' or serverPort.isdigit() == False :
|
if serverPort == '' or serverPort.isdigit() == False :
|
||||||
serverPort = '22'
|
serverPort = '22'
|
||||||
@@ -456,8 +456,8 @@ def publish():
|
|||||||
folder = '/'
|
folder = '/'
|
||||||
|
|
||||||
|
|
||||||
if db.publish(username, password, serverAddress, serverPort, folder) == False:
|
#if db.publish(username, password, serverAddress, serverPort, folder) == False:
|
||||||
return make_response(('Impossible de publier le site ', 500))
|
# return make_response(('Impossible de publier le site ', 500))
|
||||||
|
|
||||||
|
|
||||||
return redirect(url_for('edit'))
|
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 |