Skip to content

Commit

Permalink
Set COMPOSE_CONVERT_WINDOWS_PATHS Windows docker ddev-router failure, f…
Browse files Browse the repository at this point in the history
…ixes #739 (#753)
  • Loading branch information
rfay committed Mar 27, 2018
1 parent ed03c1b commit b108ac6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
35 changes: 18 additions & 17 deletions pkg/ddevapp/ddevapp.go
Expand Up @@ -686,23 +686,24 @@ func (app *DdevApp) Logs(service string, follow bool, timestamps bool, tailLines
// DockerEnv sets environment variables for a docker-compose run.
func (app *DdevApp) DockerEnv() {
envVars := map[string]string{
"COMPOSE_PROJECT_NAME": "ddev-" + app.Name,
"DDEV_SITENAME": app.Name,
"DDEV_DBIMAGE": app.DBImage,
"DDEV_DBAIMAGE": app.DBAImage,
"DDEV_WEBIMAGE": app.WebImage,
"DDEV_APPROOT": app.AppRoot,
"DDEV_DOCROOT": app.Docroot,
"DDEV_DATADIR": app.DataDir,
"DDEV_IMPORTDIR": app.ImportDir,
"DDEV_URL": app.GetHTTPURL(),
"DDEV_HOSTNAME": app.HostName(),
"DDEV_UID": "",
"DDEV_GID": "",
"DDEV_PHP_VERSION": app.PHPVersion,
"DDEV_PROJECT_TYPE": app.Type,
"DDEV_ROUTER_HTTP_PORT": app.RouterHTTPPort,
"DDEV_ROUTER_HTTPS_PORT": app.RouterHTTPSPort,
"COMPOSE_PROJECT_NAME": "ddev-" + app.Name,
"COMPOSE_CONVERT_WINDOWS_PATHS": "true",
"DDEV_SITENAME": app.Name,
"DDEV_DBIMAGE": app.DBImage,
"DDEV_DBAIMAGE": app.DBAImage,
"DDEV_WEBIMAGE": app.WebImage,
"DDEV_APPROOT": app.AppRoot,
"DDEV_DOCROOT": app.Docroot,
"DDEV_DATADIR": app.DataDir,
"DDEV_IMPORTDIR": app.ImportDir,
"DDEV_URL": app.GetHTTPURL(),
"DDEV_HOSTNAME": app.HostName(),
"DDEV_UID": "",
"DDEV_GID": "",
"DDEV_PHP_VERSION": app.PHPVersion,
"DDEV_PROJECT_TYPE": app.Type,
"DDEV_ROUTER_HTTP_PORT": app.RouterHTTPPort,
"DDEV_ROUTER_HTTPS_PORT": app.RouterHTTPSPort,
}
if runtime.GOOS == "linux" {
curUser, err := user.Current()
Expand Down
1 change: 1 addition & 0 deletions pkg/testcommon/testcommon.go
Expand Up @@ -225,6 +225,7 @@ func CaptureStdOut() func() string {
func ClearDockerEnv() {
envVars := []string{
"COMPOSE_PROJECT_NAME",
"COMPOSE_CONVERT_WINDOWS_PATHS",
"DDEV_SITENAME",
"DDEV_DBIMAGE",
"DDEV_WEBIMAGE",
Expand Down

0 comments on commit b108ac6

Please sign in to comment.