Discover Packages
github.com/huazhihao/foremand
command
module
Version:
v0.0.0-...-a023534
Opens a new window with list of versions in this module.
Published: Dec 27, 2019
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
foremand
foremand
= foreman
+ etcd
Quick Examples
This short example assumes foremand, etcd and etcdctl are installed locally.
Start a etcd
cluster in dev mode:
$ etcd
Write data to the key in etcd
:
$ ETCDCTL_API=3 etcdctl put host1/app "python -m SimpleHTTPServer 8001"
OK
Register to etcd
:
$ foremand -endpoints=http://127.0.0.1:2379 -prefix=host1
INFO[0000] Initialing foremand endpoints="[http://127.0.0.1:2379]" prefix=host1
INFO[0000] Starting foremand
INFO[0000] forking app=host1/app shell="python -m SimpleHTTPServer 8001"
Test app
connectivity:
$ curl http://127.0.0.1:8001
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html>
<title>Directory listing for /</title>
<body>
<h2>Directory listing for /</h2>
...
</body>
</html>
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.