Skip to content
Snippets Groups Projects
Commit 97f95fe8 authored by Adam Cooke's avatar Adam Cooke
Browse files

only exclude asset gems if there are prebuilt assets

parent 7178977e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -102,7 +102,12 @@ case "$1" in
 
bundle)
if [ -n "$2" ]; then
run "bundle install --path=$2 --jobs=2 --clean --without=development assets"
if [ -f "public/assets/.prebuilt" ]; then
# If there are prebuilt assets, don't install the asset gems
run "bundle install --path=$2 --jobs=2 --clean --without=development assets"
else
run "bundle install --path=$2 --jobs=2 --clean --without=development"
fi
else
echo "usage: $0 bundle path/to/vendor/dir"
exit 1
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment