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:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p ../server/static/wheels
|
||||
mkdir -p ../static/wheels
|
||||
cd src
|
||||
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
|
||||
|
||||
@@ -4,7 +4,7 @@ from toga_flask import TogaApp
|
||||
|
||||
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))
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user