Upgraded pkgr config.

This commit is contained in:
Martin Edenhofer 2016-05-30 09:12:01 +02:00
parent f529def251
commit 790835f362
3 changed files with 31 additions and 16 deletions

View file

@ -2,20 +2,33 @@ targets:
centos-6:
dependencies:
- httpd
- mysql-server
user: "zammad"
group: "zammad"
after_install: packaging/hooks/postinstall.sh
- postgresql
- postgresql-server
- postgresql-devel
centos-7:
dependencies:
- httpd
- postgresql
- postgresql-server
- postgresql-devel
before:
- cp config/database.yml.pkgr config/database.yml
- uname -a
- ruby -v
- env
- cp config/database.yml.pkgr config/database.yml
- echo "gem 'pg'" >> Gemfile.local
- echo "gem 'mysql2', '~> 0.3.20'" >> Gemfile.local
- sed -i "s/specs:/specs:\\n pg (0.18.4)/g" Gemfile.lock
- sed -i "s/DEPENDENCIES/DEPENDENCIES\\n pg/g" Gemfile.lock
- "#cat Gemfile.lock"
env:
- RAILS_ENV=production
- RAILS_GROUPS=assets
- PORT=3000
- RAILS_SERVE_STATIC_FILES=true
services:
- postgres
notifications: false

View file

@ -1,3 +1,3 @@
web: puma -p 3000
worker: script/scheduler.rb
websocket: script/websocket-server.rb
web: bundle exec rails s -p 3000
worker: bundle exec script/scheduler.rb start -t
websocket: bundle exec script/websocket-server.rb start

View file

@ -1,6 +1,8 @@
production:
adapter: sqlite3
database: db/test.sqlite3
timeout: 12000
adapter: postgresql
database: zammad_production
pool: 50
timeout: 5000
encoding: utf8
username: zammad
password: