Skip to content

Commit

Permalink
Add project type and docroot to describe (#3258)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Sep 24, 2021
1 parent b8d9344 commit e4beb1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ddev/cmd/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func renderAppDescribe(app *ddevapp.DdevApp, desc map[string]interface{}) (strin

// Get extra info for web container
if k == "web" {
extraInfo = append(extraInfo, fmt.Sprintf("PHP %s %s", desc["php_version"], desc["webserver_type"]))
extraInfo = append(extraInfo, fmt.Sprintf("%s PHP%s\n%s\ndocroot:'%s'", desc["type"], desc["php_version"], desc["webserver_type"], desc["docroot"]))
if desc["nfs_mount_enabled"].(bool) {
extraInfo = append(extraInfo, fmt.Sprintf("NFS Enabled"))
}
Expand Down
1 change: 1 addition & 0 deletions pkg/ddevapp/ddevapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func (app *DdevApp) Describe(short bool) (map[string]interface{}, error) {
appDesc["name"] = app.GetName()
appDesc["status"] = app.SiteStatus()
appDesc["approot"] = app.GetAppRoot()
appDesc["docroot"] = app.GetDocroot()
appDesc["shortroot"] = shortRoot
appDesc["httpurl"] = app.GetHTTPURL()
appDesc["httpsurl"] = app.GetHTTPSURL()
Expand Down

0 comments on commit e4beb1a

Please sign in to comment.