Sha256: 37349150b31b550a9542e2eaddac8699dacbd9e272cab0366cc443126b204267
Contents?: true
Size: 313 Bytes
Versions: 46
Compression:
Stored size: 313 Bytes
Contents
#!/usr/bin/env ruby def assets_updated? `git diff-index --name-only HEAD | egrep '^app/assets'` != "" end begin if assets_updated? puts system('bundle exec rake assets:precompile:all RACK_ENV=production') puts system('git add public/assets') end exit 0 rescue => e puts e.message exit 1 end
Version data entries
46 entries across 46 versions & 1 rubygems