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

Method Restart

pkg/ddevapp/ddevapp.go:2205–2212  ·  view source on GitHub ↗

Restart does a Stop() and a Start

()

Source from the content-addressed store, hash-verified

2203
2204// Restart does a Stop() and a Start
2205func (app *DdevApp) Restart() error {
2206 err := app.Stop(false, false)
2207 if err != nil {
2208 return err
2209 }
2210 err = app.Start()
2211 return err
2212}
2213
2214// PullBaseContainerImages pulls only the fundamentally needed images so they can be available early.
2215// We always need web image, and ddev-utilities for housekeeping.

Callers 15

TestPHPConfigFunction · 0.95
TestExtraPackagesFunction · 0.95
TestDdevNoProjectMountFunction · 0.95
TestDdevAllDatabasesFunction · 0.95
TestMutagenSimpleFunction · 0.95
TestMutagenConfigChangeFunction · 0.95
TestConfigFunctionalityFunction · 0.80
TestProcessHooksFunction · 0.80
TestDdevXdebugEnabledFunction · 0.80
TestEnvironmentVariablesFunction · 0.80

Calls 2

StopMethod · 0.95
StartMethod · 0.95

Tested by 15

TestPHPConfigFunction · 0.76
TestExtraPackagesFunction · 0.76
TestDdevNoProjectMountFunction · 0.76
TestDdevAllDatabasesFunction · 0.76
TestMutagenSimpleFunction · 0.76
TestMutagenConfigChangeFunction · 0.76
TestConfigFunctionalityFunction · 0.64
TestProcessHooksFunction · 0.64
TestDdevXdebugEnabledFunction · 0.64
TestEnvironmentVariablesFunction · 0.64