Page MenuHomeDevCentral

D1307.id3355.diff
No OneTemporary

D1307.id3355.diff

diff --git a/roles/webserver-content/org/nasqueron/api.sls b/roles/webserver-content/org/nasqueron/api.sls
--- a/roles/webserver-content/org/nasqueron/api.sls
+++ b/roles/webserver-content/org/nasqueron/api.sls
@@ -22,4 +22,35 @@
- user: deploy
- group: web
+# -------------------------------------------------------------
+# API micro services are deployed to /srv/api
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/api:
+ file.directory:
+ - user: deploy
+ - group: web
+ - dir_mode: 755
+
+# -------------------------------------------------------------
+# /servers-log micro service
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/api/servers-log:
+ file.recurse:
+ - source: salt://software/api/serverslog
+ - exclude_pat: E@.git
+ - include_empty: True
+ - clean: False
+ - dir_mode: 755
+ - file_mode: 644
+ - user: deploy
+ - group: web
+
+api_servers_log_dependencies:
+ cmd.run:
+ - name: composer install
+ - runas: deploy
+ - cwd: /srv/api/servers-log
+ - creates: /srv/api/servers-log/vendor
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 05:23 (7 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259567
Default Alt Text
D1307.id3355.diff (1 KB)

Event Timeline