--- /dev/null
+hooks:
+ before_web:
+ - exec:
+ cmd:
+ - gem sources --remove https://rubygems.org/
+ - gem sources -a https://ruby.taobao.org/
+
+ before_bundle_exec:
+ - exec:
+ cmd:
+ - su discourse -c 'bundle config mirror.https://rubygems.org https://ruby.taobao.org/'
# ensure we are on latest bundler
- gem update bundler
- chown -R discourse $home
+
+ - exec:
+ cd: $home
+ hook: bundle_exec
+ cmd:
- su discourse -c 'bundle install --deployment --verbose --without test --without development'
- su discourse -c 'bundle exec rake db:migrate'
- su discourse -c 'bundle exec rake assets:precompile'