Browse Source

pkgr - implement nginx in ubuntu

André Bauer 8 years ago
parent
commit
798b46f770
1 changed files with 5 additions and 3 deletions
  1. 5 3
      .pkgr.yml

+ 5 - 3
.pkgr.yml

@@ -19,6 +19,11 @@ targets:
     dependencies:
       - nginx
       - postgresql
+    after_install:
+      - zammad scale web=1 websocket=1 worker=1
+      - /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
+      - sytemctl nginx restart
 before:
   - uname -a
   - ruby -v
@@ -36,7 +41,4 @@ env:
 services:
   - postgres
 
-after_install:
-  - zammad scale web=1 websocket=1 worker=1
-
 notifications: false