Skip to content

ubuntu/simple-webserver-part

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-webserver-part

Snapcraft simple webserver part

Usage:

In your snapcraft.yaml:

  1. Just have one of your snapcraft part defining: after: [simple-webserver]
  2. 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.

About

Snapcraft simple webserver part

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages