You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#46 contains the first approach to integrating emergence
The new approach will be to:
Continue installing emergence-kernel via npm install -g, so that both new machines can be initialized and old machines updated with the same command
The kernel will handle installing habitat
maybe run the habitat curl|bash when the kernel starts if hab isn't found in the path?
maybe use some sort of npm hook to do that from a package.json option when the kernel is globally installed?
maybe repackage habitat as an npm package so it can just be a dependency for the kernel that npm handles installing to .bin
The kernel will automate running hab commands
maybe just use a promise-based shell npm package to run hab commands
maybe repackage habitat as an npm package and expose async functions for each of the habitat commands we want that take node-ified options
generate a single json document config for the entire host, consisting of the /emergence/config.json base document with a "sites" key added containing an object mapping each site handle under /emergence/sites/* to the contents of its site.json
only the nginx config will loop through the "sites" list
we might want to remap services.plugins.myservice in legacy config.json to just services.myservice on load if plugins is detected the only key. Update the code that auto-generates new config.json to skip the plugins subkey going forward
start the habitat supervisor if needed
reimplement the start / stop functions for each of kernel-lib/services/* to load+start / stop via hab sup
query hab sup status for current service status on startup and when requested instead of using pid files and maintaining a started/stopped state internally
customize health check hooks for each service to do as complete a check as possible for being usable by emergence
The text was updated successfully, but these errors were encountered:
#46 contains the first approach to integrating emergence
The new approach will be to:
npm install -g
, so that both new machines can be initialized and old machines updated with the same commandcurl|bash
when the kernel starts ifhab
isn't found in the path?package.json
option when the kernel is globally installed?.bin
hab
commands/emergence/config.json
base document with a"sites"
key added containing an object mapping each site handle under/emergence/sites/*
to the contents of itssite.json
"sites"
listservices.plugins.myservice
in legacyconfig.json
to justservices.myservice
on load ifplugins
is detected the only key. Update the code that auto-generates newconfig.json
to skip theplugins
subkey going forwardstart
/stop
functions for each ofkernel-lib/services/*
toload+start
/stop
viahab sup
hab sup status
for current service status on startup and when requested instead of using pid files and maintaining a started/stopped state internallyThe text was updated successfully, but these errors were encountered: