Skip to content

Commit

Permalink
Moves the static assets into a subfolder where index.html expects them.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Phillips committed Oct 28, 2015
1 parent 458f163 commit be4d2ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bundle exec ruby scripts/compile.rb

# Copy into deploy
shopt -s dotglob
cp -r $DIR/static/* $DEPLOY/
cp -r $DIR/static $DEPLOY/
cp index.html $DEPLOY/

# Magic scripting
Expand All @@ -33,5 +33,5 @@ sed -E -e "s#<\/body>#<script src=\"static/application.min.js\"></script></body>
rm $DEPLOY/index.htmlbak

pushd $DEPLOY >/dev/null 2>&1
zip ../web_ui.zip ./*
zip -r ../web_ui.zip ./*
popd >/dev/null 2>&1

0 comments on commit be4d2ff

Please sign in to comment.