From 6a36b589773b879205c3901e8917c271b2c1086c Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Sat, 14 Jan 2017 05:15:39 +0000 Subject: [PATCH] Add the daemon --- snapcraft.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 344a421a..c63d017f 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -14,9 +14,15 @@ description: | grade: devel confinement: strict +apps: + swagger-ui: + command: sh -c \"cd $SNAP/lib/node_modules/swagger-ui/dist && http-server -a localhost -p 8080\" + daemon: simple + plugs: [network, network-bind] + parts: swagger-ui: source: . plugin: nodejs npm-run: [build] - node-packages: [handlebars] + node-packages: [handlebars, http-server]