2016-12-06 11:11:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# packager.io after script
|
|
|
|
#
|
|
|
|
|
2016-12-06 13:52:49 +00:00
|
|
|
PATH=$(pwd)/bin:$(pwd)/vendor/bundle/bin:$PATH
|
2016-12-06 11:11:04 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# download locales and translations to make a offline installation possible
|
|
|
|
gem install bundle
|
|
|
|
bundle install
|
|
|
|
|
|
|
|
rake db:migrate
|
|
|
|
rake db:seed
|
|
|
|
|
|
|
|
rails r 'Locale.fetch'
|
|
|
|
rails r 'Translation.fetch'
|
|
|
|
|
|
|
|
rm -rf tmp/cache*
|