after.sh 309 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. #
  3. # packager.io after script
  4. #
  5. PATH=`pwd`/bin:`pwd`/vendor/bundle/bin:$PATH
  6. set -e
  7. # download locales and translations to make a offline installation possible
  8. gem install bundle
  9. bundle install
  10. rake db:migrate
  11. rake db:seed
  12. rails r 'Locale.fetch'
  13. rails r 'Translation.fetch'
  14. rm -rf tmp/cache*