Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12076513
D1307.id3360.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1307.id3360.diff
View Options
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,36 @@
- 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
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Oct 3, 17:48 (11 h, 26 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
92/8e/050f0064a531f98ea48242678f64
Default Alt Text
D1307.id3360.diff (1 KB)
Attached To
Mode
D1307: Deploy api-serverslog microservice to /srv/api/servers-log
Attached
Detach File
Event Timeline
Log In to Comment