Skip to content

Instantly share code, notes, and snippets.

@Crawleyprint
Created July 20, 2012 12:23
Show Gist options
  • Save Crawleyprint/3150452 to your computer and use it in GitHub Desktop.
Save Crawleyprint/3150452 to your computer and use it in GitHub Desktop.
build for se
#!/bin/bash
echo "Update Started" && \
cd $(dirname $0)/.. && \
SE=$(pwd) && \
echo $SE && \
rm web/js/build/*.* && \
echo "Updating submodules..." && \
git submodule init && \
git submodule update && \
echo "Building ecommerce javascript bundle..." && \
node web/js/stores/r.js -o web/js/stores/app.build.js && \
cp web/js/build/stores.js web/js/build/stores_$(php $(dirname $0)/get-current-assets-version-hash.php).js && \
echo "Ecommerce build successful!" && \
echo "Building quote module javascript bundle..." && \
node web/js/stores/r.js -o web/js/modules/quote/quote.build.js && \
echo "Quote module build successful!" && \
cd web/js && \
echo "Building website javascript bundles..." && \
grunt --config grunt-libs.js && \
grunt --config grunt-user.js && \
echo "Website javascript bundle completed!" && \
echo $(dirname $0) && \
cd build && \
echo $(pwd)
mv libs.min.js libs.min_$(php ../../../$(dirname $0)/get-current-assets-version-hash.php).js && \
mv user-scripts.js user-scripts_$(php ../../../$(dirname $0)/get-current-assets-version-hash.php).js
cd ../../.. && \
rm web/css/*.* && \
compass compile web -e production && \
./symfony cc && \
chown -R www-data:www-data . && \
echo "Update Completed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment