Skip to content

Commit

Permalink
fix error when running exec command does not bind correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmaria committed Sep 2, 2021
1 parent cb702cd commit 3f898ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/envasync/upsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ func (UpAsync) Start(command *cli.Command) {
errors.Throw("", err)

id := uuid.New()
envTmp := "/tmp/" + id.String()
envTmp := "/tmp/" + "envconainer-exec-" + id.String()

compose.Services.Environment.Volumes[0].Source = pwd
compose.Services.Environment.Volumes[0].Target = "/home/envcontainer/" + strings.Split(pwd, "/")[len(strings.Split(pwd, "/"))-1]
compose.Services.Environment.EnvFile[0] = envTmp + "/compose/.env"
compose.Services.Environment.ContainerName = id.String()
compose.Services.Environment.WorkingDir = "/home/envcontainer/" + strings.Split(pwd, "/")[len(strings.Split(pwd, "/"))-1]
Expand Down

0 comments on commit 3f898ed

Please sign in to comment.