FIX: Don't install test gems in production.
[discourse_docker.git] / templates / import / mssql-dep.template.yml
CommitLineData
c11d5b0c
GS
1# This template adds the 'tiny_tds' gem for import scripts depending on it
2
3params:
4 home: /var/www/discourse
5
6hooks:
7 after_web_config:
8 - exec:
9 cd: /tmp
10 cmd:
11 - wget -O freetds.tar.gz http://www.freetds.org/files/stable/freetds-1.00.91.tar.gz
12 - tar -xzf freetds.tar.gz
13 - exec:
14 cd: /tmp/freetds-*
15 cmd:
16 - ./configure --prefix=/usr/local --with-tdsver=7.3
17 - make && make install
18
19 after_bundle_exec:
20 - exec:
21 cd: $home
22 cmd:
23 - echo "gem 'tiny_tds'" >> Gemfile
b8866fb9 24 - su discourse -c 'bundle install --no-deployment --path vendor/bundle --jobs 4 --without test development'