moved cleanup.sh to contrip/packager.io / added contrib/packager.io/postinstall.sh

This commit is contained in:
André Bauer 2016-10-25 15:29:10 +02:00
parent 6d89cf1661
commit 3610ed3bcc
3 changed files with 15 additions and 1 deletions

View file

@ -27,10 +27,11 @@ before:
- cp config/database.yml.pkgr config/database.yml
- echo "gem 'mysql2'" >> Gemfile.local
- "cat Gemfile.lock"
- contrib/cleanup.sh
- contrib/packager.io/cleanup.sh
env:
- RAILS_ENV=production
- PORT=3000
- RAILS_SERVE_STATIC_FILES=true
services:
- postgres
after_install: contrib/packager.io/postinstall.sh

View file

@ -0,0 +1,13 @@
#!/bin/bash
set -ex
# create init scripts
/usr/bin/zammad scale web=1 websocket=1 worker=1
# start zammad
systemctl start zammad
# start nginx
systemctl start nginx