File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ func craftCmsPostStartAction(app *DdevApp) error {
78
78
}
79
79
80
80
// If the .env file doesn't exist, try to create it by copying .env.example to .env
81
- envFilePath := filepath . Join ( app .AppRoot , app . ComposerRoot , ".env" )
81
+ envFilePath := app .GetConfigPath ( ".env.web " )
82
82
if ! fileutil .FileExists (envFilePath ) {
83
83
var exampleEnvFilePaths = []string {".env.example" , ".env.example.dev" }
84
84
for _ , envFileName := range exampleEnvFilePaths {
@@ -101,7 +101,7 @@ func craftCmsPostStartAction(app *DdevApp) error {
101
101
// Read in the .env file
102
102
envMap , envText , err := ReadProjectEnvFile (envFilePath )
103
103
if err != nil && ! os .IsNotExist (err ) {
104
- return fmt .Errorf ("unable to read .env file : %v" , err )
104
+ return fmt .Errorf ("unable to read %s : %v" , envFilePath , err )
105
105
}
106
106
107
107
port := "3306"
You can’t perform that action at this time.
0 commit comments