From 7fbd43868773a67a9f93a596eadf5f212c25cec6 Mon Sep 17 00:00:00 2001 From: Cory Forsyth Date: Mon, 2 Nov 2015 14:51:42 -0500 Subject: [PATCH] update website build script, demo prod config --- bin/build-website.sh | 14 +++++++------- demo/config/environment.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/build-website.sh b/bin/build-website.sh index ae91a138d..e58a16156 100755 --- a/bin/build-website.sh +++ b/bin/build-website.sh @@ -1,21 +1,21 @@ #!/bin/bash -echo "Building website..." cd demo/ +echo "Building website in $(pwd)" rm -rf node_modules/ bower_components/* npm install bower install ember build --environment production +cd .. -echo "Arranging built website in website/" +echo "Arranging built website in $(pwd)/website" rm -rf website -mkdir website +mkdir -p website/demo -# rename demo/dist/index.html to be the base index.html -cd .. -cp -R demo/dist/* website/ +echo "Copying $(pwd)/demo/dist/* to $(pwd)/website/demo" +cp -R demo/dist/* website/demo/ CURRENT_SHA="$(git rev-parse HEAD)" git add website/ git commit -m "built website from $CURRENT_SHA" -echo "Done." +echo "Deployed to http://bustlelabs.github.io/content-kit-editor/demo/" diff --git a/demo/config/environment.js b/demo/config/environment.js index 135cd2a72..82401f0aa 100644 --- a/demo/config/environment.js +++ b/demo/config/environment.js @@ -40,7 +40,7 @@ module.exports = function(environment) { } if (environment === 'production') { - + ENV.baseURL = '/content-kit-editor/demo/'; } return ENV;