Skip to content

Commit cdcb3c1

Browse files
committed
fix: copy static files correctly in rockcraft config
1 parent dc031cc commit cdcb3c1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rockcraft.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ parts:
2626
yarn install
2727
# build the UI
2828
yarn run build
29-
# mkdir -p "$CRAFT_PART_INSTALL/flask/app"
30-
# cp -r static "$CRAFT_PART_INSTALL/flask/app/"
29+
mkdir -p "$CRAFT_PART_INSTALL/flask/app"
30+
cp -r static "$CRAFT_PART_INSTALL/flask/app/"
3131
flask-framework/install-app:
3232
after:
3333
- build-ui
@@ -36,7 +36,7 @@ parts:
3636
- flask/app/app.py
3737
- flask/app/webapp
3838
- flask/app/templates
39-
- flask/app/static
39+
# - flask/app/static # it already gets copied in the build-ui step
4040
- flask/app/redirects.yaml
4141
- flask/app/security.txt
4242
- flask/app/robots.txt

0 commit comments

Comments
 (0)