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: centos-6:
dependencies: dependencies:
- httpd - httpd
- mysql-server - postgresql
- postgresql-server
user: "zammad" - postgresql-devel
group: "zammad" centos-7:
dependencies:
after_install: packaging/hooks/postinstall.sh - httpd
- postgresql
- postgresql-server
- postgresql-devel
before: before:
- cp config/database.yml.pkgr config/database.yml
- uname -a - 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: env:
- RAILS_ENV=production - RAILS_ENV=production
- RAILS_GROUPS=assets - PORT=3000
- RAILS_SERVE_STATIC_FILES=true
services:
- postgres
notifications: false notifications: false

View file

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

View file

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