Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- cwd=$(pwd)
- if [ ! -d public ]; then
- echo "Looks like it is not HUB root directory!"
- exit 1;
- fi
- if [ ! -d public/modules ]; then
- mkdir public/modules
- fi
- rm -rf public/modules/*
- for line in $(ls modules); do
- echo "$cwd/modules/$line/public => $cwd/public/modules/$line"
- if [ -d "$cwd/modules/$line/public" ]; then
- ln -s "$cwd/modules/$line/public" "$cwd/public/modules/$line"
- fi
- done
- bower install;
- npm i;
- gulp template;
- gulp build;
- php console.php cache:clear;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement