Skip to content

Commit 8fdc28e

Browse files
committed
Moved the static folder so it can be shared with the SPA.
1 parent be57778 commit 8fdc28e

13 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

3-
mkdir -p ../server/static/wheels
3+
mkdir -p ../static/wheels
44
cd src
55
unzip ../base-wheel.zip
6-
zip ../../server/static/wheels/freedom-0.0.1-py3-none-any.whl -r freedom*
6+
zip ../../static/wheels/freedom-0.0.1-py3-none-any.whl -r freedom*
77
rm -rf freedom-0.0.1.dist-info

pyscriptjs/examples/toga/server/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from freedom import app as freedom
66

7-
app = Flask(__name__)
7+
app = Flask(__name__, static_folder='../static')
88

99
app.add_url_rule('/', view_func=TogaApp.as_view("foo", app_module=freedom))
1010

0 commit comments

Comments
 (0)