Create dev org in database (#41)
These changes create a dev org in the database on startup. They also plumb through a dev-org-id flag that allows specifying a chosen org ID in dev mode. The logic will allow us to let people specify a default org ID in the config file too, although currently that's not enabled. Several other improvements were made as well: * Consolidation of some code from across the server commands * Plumbing shutdownch through so we can use it for canceling contexts during startup
This commit is contained in:
1 parent
670abaed88
commit
062ce6079f
7 files changed
+150
-63
No files matched your search
@@ -63,7 +63,8 @@ listener "tcp" {
|
||||
type Config struct {
|
||||
*configutil.SharedConfig `hcl:"-"`
|
||||
|
||||
DevController bool `hcl:"-"`
|
||||
DevController bool `hcl:"-"`
|
||||
DefaultOrgId string `hcl:"default_org_id"`
|
||||
}
|
||||
|
||||
// DevWorker is a Config that is used for dev mode of Watchtower
|
||||
|
||||
Reference in new issue
Block a user