Skip to content

Commit

Permalink
update website build script, demo prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Nov 2, 2015
1 parent 28c57d7 commit 7fbd438
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions 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/"
2 changes: 1 addition & 1 deletion demo/config/environment.js
Expand Up @@ -40,7 +40,7 @@ module.exports = function(environment) {
}

if (environment === 'production') {

ENV.baseURL = '/content-kit-editor/demo/';
}

return ENV;
Expand Down

0 comments on commit 7fbd438

Please sign in to comment.