2015-12-03 09:03:08 +00:00
|
|
|
targets:
|
2015-12-03 09:24:22 +00:00
|
|
|
centos-6:
|
2015-12-03 09:03:08 +00:00
|
|
|
dependencies:
|
|
|
|
- httpd
|
2016-05-30 07:12:01 +00:00
|
|
|
- postgresql
|
|
|
|
- postgresql-server
|
|
|
|
- postgresql-devel
|
|
|
|
centos-7:
|
|
|
|
dependencies:
|
|
|
|
- httpd
|
|
|
|
- postgresql
|
|
|
|
- postgresql-server
|
|
|
|
- postgresql-devel
|
2016-10-25 08:29:13 +00:00
|
|
|
debian-7:
|
|
|
|
dependencies:
|
|
|
|
- nginx
|
|
|
|
- postgresql
|
2016-10-24 09:24:38 +00:00
|
|
|
ubuntu-16.04:
|
|
|
|
dependencies:
|
2016-10-25 08:29:13 +00:00
|
|
|
- nginx
|
2016-10-24 09:24:38 +00:00
|
|
|
- postgresql
|
2016-10-25 09:14:01 +00:00
|
|
|
after_install:
|
|
|
|
- zammad scale web=1 websocket=1 worker=1
|
2016-10-25 09:15:27 +00:00
|
|
|
- systemctl restart zammad
|
2016-10-25 09:14:01 +00:00
|
|
|
- /opt/zammad/contrib/nginx/sites-available/zammad.conf /etc/nginx/sites-available/zammad.conf
|
|
|
|
- ln -s /etc/nginx/sites-available/zammad.conf /etc/nginx/sites-enabled/zammad.conf
|
2016-10-25 09:15:27 +00:00
|
|
|
- sytemctl restart nginx
|
2015-12-03 14:49:22 +00:00
|
|
|
before:
|
2015-12-03 15:39:52 +00:00
|
|
|
- uname -a
|
2016-05-30 07:12:01 +00:00
|
|
|
- ruby -v
|
|
|
|
- env
|
|
|
|
- cp config/database.yml.pkgr config/database.yml
|
2016-10-19 03:54:18 +00:00
|
|
|
- echo "gem 'mysql2'" >> Gemfile.local
|
|
|
|
- "cat Gemfile.lock"
|
2016-09-07 06:49:52 +00:00
|
|
|
- contrib/cleanup.sh
|
2015-12-03 14:43:18 +00:00
|
|
|
|
2015-12-03 09:03:08 +00:00
|
|
|
env:
|
2015-12-03 14:34:40 +00:00
|
|
|
- RAILS_ENV=production
|
2016-05-30 07:12:01 +00:00
|
|
|
- PORT=3000
|
|
|
|
- RAILS_SERVE_STATIC_FILES=true
|
2015-12-03 09:03:08 +00:00
|
|
|
|
2016-05-30 07:12:01 +00:00
|
|
|
services:
|
|
|
|
- postgres
|
2015-12-03 09:03:08 +00:00
|
|
|
|
2016-05-30 07:12:01 +00:00
|
|
|
notifications: false
|