MCPcopy Index your code
hub / github.com/ddev/ddev / GetAbsAppRoot

Method GetAbsAppRoot

pkg/ddevapp/ddevapp.go:651–657  ·  view source on GitHub ↗

GetAbsAppRoot returns the absolute path to the project root on the host or if inContainer is set to true in the container.

(inContainer bool)

Source from the content-addressed store, hash-verified

649// GetAbsAppRoot returns the absolute path to the project root on the host or if
650// inContainer is set to true in the container.
651func (app DdevApp) GetAbsAppRoot(inContainer bool) string {
652 if inContainer {
653 return "/var/www/html"
654 }
655
656 return app.AppRoot
657}
658
659// GetComposerRoot will determine the absolute Composer root directory where
660// all Composer related commands will be executed.

Callers 8

GetAbsDocrootMethod · 0.95
GetComposerRootMethod · 0.95
GetHostWorkingDirMethod · 0.95
makeContainerCmdFunction · 0.80
appendAllArgsAtTheEndFunction · 0.80
dotenv-get.goFile · 0.80
dotenv-set.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected