mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Add built-in PostgreSQL for simple production setup (#2345)
* feat: Add built-in PostgreSQL for simple production setup Fixes #2321. * Use fork of embedded-postgres for cache path
This commit is contained in:
@@ -25,6 +25,18 @@ func (r Root) DotfilesURL() File {
|
||||
return File(filepath.Join(string(r), "dotfilesurl"))
|
||||
}
|
||||
|
||||
func (r Root) PostgresPath() string {
|
||||
return filepath.Join(string(r), "postgres")
|
||||
}
|
||||
|
||||
func (r Root) PostgresPassword() File {
|
||||
return File(filepath.Join(r.PostgresPath(), "password"))
|
||||
}
|
||||
|
||||
func (r Root) PostgresPort() File {
|
||||
return File(filepath.Join(r.PostgresPath(), "port"))
|
||||
}
|
||||
|
||||
// File provides convenience methods for interacting with *os.File.
|
||||
type File string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user