Skip to content

Commit

Permalink
fix: check if .edge/storage exists before purging files
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Jul 22, 2024
1 parent c54c2e0 commit 67ad11d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/deploy/purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func (cmd *DeployCmd) PurgeUrls(domain []string, path string) error {
}

func PurgeForUpdatedFiles(cmd *DeployCmd, domain apidom.DomainResponse, confPath string, msgs *[]string) error {
if _, err := os.Stat(PathStatic); os.IsNotExist(err) {
return nil
}
listURLsDomains := domain.GetCnames()
if !domain.GetCnameAccessOnly() {
listURLsDomains = append(listURLsDomains, domain.GetDomainName())
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/dev/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func NewDevCmd(f *cmdutil.Factory) *DevCmd {
CommandRunInteractive: func(f *cmdutil.Factory, comm string) error {
return utils.CommandRunInteractive(f, comm)
},
Vulcan: vulcanPkg.NewVulcan,
}
}

Expand Down

0 comments on commit 67ad11d

Please sign in to comment.