1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

Moved the static folder so it can be shared with the SPA.

This commit is contained in:
Russell Keith-Magee
2022-04-20 08:04:53 +08:00
parent be57778651
commit 8fdc28edcc
13 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
mkdir -p ../server/static/wheels mkdir -p ../static/wheels
cd src cd src
unzip ../base-wheel.zip unzip ../base-wheel.zip
zip ../../server/static/wheels/freedom-0.0.1-py3-none-any.whl -r freedom* zip ../../static/wheels/freedom-0.0.1-py3-none-any.whl -r freedom*
rm -rf freedom-0.0.1.dist-info rm -rf freedom-0.0.1.dist-info

View File

@@ -4,7 +4,7 @@ from toga_flask import TogaApp
from freedom import app as freedom from freedom import app as freedom
app = Flask(__name__) app = Flask(__name__, static_folder='../static')
app.add_url_rule('/', view_func=TogaApp.as_view("foo", app_module=freedom)) app.add_url_rule('/', view_func=TogaApp.as_view("foo", app_module=freedom))

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB