moved cleanup.sh to contrip/packager.io / added contrib/packager.io/postinstall.sh
This commit is contained in:
parent
6d89cf1661
commit
3610ed3bcc
3 changed files with 15 additions and 1 deletions
|
@ -27,10 +27,11 @@ before:
|
||||||
- cp config/database.yml.pkgr config/database.yml
|
- cp config/database.yml.pkgr config/database.yml
|
||||||
- echo "gem 'mysql2'" >> Gemfile.local
|
- echo "gem 'mysql2'" >> Gemfile.local
|
||||||
- "cat Gemfile.lock"
|
- "cat Gemfile.lock"
|
||||||
- contrib/cleanup.sh
|
- contrib/packager.io/cleanup.sh
|
||||||
env:
|
env:
|
||||||
- RAILS_ENV=production
|
- RAILS_ENV=production
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
- RAILS_SERVE_STATIC_FILES=true
|
- RAILS_SERVE_STATIC_FILES=true
|
||||||
services:
|
services:
|
||||||
- postgres
|
- postgres
|
||||||
|
after_install: contrib/packager.io/postinstall.sh
|
||||||
|
|
13
contrib/packager.io/postinstall.sh
Executable file
13
contrib/packager.io/postinstall.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue