-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from chuckleheads/elliott/cleanupening
Cleanup config parsing and database migration errors
- Loading branch information
Showing
45 changed files
with
395 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ pkg_upstream_url="https://github.com/chuckleheads/hurtlocker" | |
pkg_license=('Apache-2.0') | ||
pkg_maintainer="The Habitat Maintainers <[email protected]>" | ||
pkg_deps=(core/cockroach) | ||
pkg_exports=( | ||
[port]=port | ||
) | ||
pkg_exposes=(port) | ||
|
||
do_build() { | ||
return 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package config | ||
|
||
type Config struct { | ||
Database DBConfig | ||
Datastore DBConfig | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[datastore] | ||
database = "{{cfg.datastore.database}}" | ||
{{#eachAlive bind.database.members as |member| ~}} | ||
{{#eachAlive bind.datastore.members as |member| ~}} | ||
{{#if @first ~}} | ||
host = "member.sys.ip" | ||
port = "member.cfg.port" | ||
host = "{{member.sys.ip}}" | ||
port = {{member.cfg.port}} | ||
{{/if ~}} | ||
{{/eachAlive ~}} | ||
migrations = {{pkg.path}}/migrations | ||
migrations = "{{pkg.path}}/migrations" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
exec 2>&1 | ||
|
||
exec {{pkg.name}} start --config "{{pkg.svc_config_path}}/config.toml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ pkg_maintainer="The Habitat Maintainers <[email protected]>" | |
pkg_bin_dirs=(bin) | ||
pkg_build_deps=(core/go core/git core/dep) | ||
pkg_deps=(core/cockroach) | ||
pkg_svc_run="${pkg_name} start" | ||
pkg_binds=( | ||
[datastore]="port" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package config | ||
|
||
type Config struct { | ||
Database DBConfig | ||
Datastore DBConfig | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[datastore] | ||
database = "{{cfg.datastore.database}}" | ||
{{#eachAlive bind.database.members as |member| ~}} | ||
{{#eachAlive bind.datastore.members as |member| ~}} | ||
{{#if @first ~}} | ||
host = "member.sys.ip" | ||
port = "member.cfg.port" | ||
host = "{{member.sys.ip}}" | ||
port = {{member.cfg.port}} | ||
{{/if ~}} | ||
{{/eachAlive ~}} | ||
migrations = {{pkg.path}}/migrations | ||
migrations = "{{pkg.path}}/migrations" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
exec 2>&1 | ||
|
||
exec {{pkg.name}} start --config "{{pkg.svc_config_path}}/config.toml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ pkg_maintainer="The Habitat Maintainers <[email protected]>" | |
pkg_bin_dirs=(bin) | ||
pkg_build_deps=(core/go core/git core/dep) | ||
pkg_deps=(core/cockroach) | ||
pkg_svc_run="${pkg_name} start" | ||
pkg_binds=( | ||
[datastore]="port" | ||
) |
1 change: 1 addition & 0 deletions
1
vendor/github.com/mattes/migrate/.gitignore → ...hub.com/golang-migrate/migrate/.gitignore
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.