packager.io need to have a working ruby env to download zammad locales and translations.
This commit is contained in:
parent
a2f77017f5
commit
7ea7c1aa83
2 changed files with 21 additions and 2 deletions
|
@ -26,8 +26,7 @@ before:
|
||||||
- "cat Gemfile.lock"
|
- "cat Gemfile.lock"
|
||||||
- contrib/cleanup.sh
|
- contrib/cleanup.sh
|
||||||
after:
|
after:
|
||||||
- rails r 'Locale.fetch'
|
- contrib/after.sh
|
||||||
- rails r 'Translation.fetch'
|
|
||||||
env:
|
env:
|
||||||
- RAILS_ENV=production
|
- RAILS_ENV=production
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
|
|
20
contrib/packager.io/after.sh
Executable file
20
contrib/packager.io/after.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# packager.io after script
|
||||||
|
#
|
||||||
|
|
||||||
|
PATH=`pwd`/bin:`pwd`/vendor/bundle/bin:$PATH
|
||||||
|
|
||||||
|
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*
|
Loading…
Reference in a new issue