mirror of
https://github.com/ubuntu/simple-webserver-part.git
synced 2025-10-26 15:01:03 +01:00
No description
Move to root directory as snapcraft importer doesn't support yet the new directory scheme. |
||
|---|---|---|
| webserver | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| snapcraft.yaml | ||
simple-webserver-part
Snapcraft simple webserver part
Usage:
In your snapcraft.yaml:
- Just have one of your snapcraft part defining:
after: [simple-webserver] - Then, spawn a service with it, with the part relative to your snap to serve:
apps:
my-server:
command: webserver www
daemon: simple
restart-condition: always
plugs: [network-bind]
Here, www is relative to $SNAP from your own snap.
You can change the default port (8080) with the -p option, for instance:
command: webserver -p 9001 www.