Skip to content

Commit 4f0e2a6

Browse files
committed
feat(nginx): enable vhost file creation
1 parent e3d9ca1 commit 4f0e2a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

subcmd/nginx.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ type nginxVhostConf struct {
180180

181181
func (nvf *nginxVhostFactory) createHost(conf *nginxVhostConf) error {
182182
// Open vhost file for writing template
183-
/*p := filepath.Join(nginxVhostAvailableDir, conf.hostname)
183+
p := filepath.Join(nginxVhostAvailableDir, conf.Hostname)
184184
_, err := os.OpenFile(p, os.O_WRONLY, 0644)
185185
if err != nil {
186186
return fmt.Errorf("could not open %s for writing: %s", p, err)
187-
}*/
187+
}
188188

189189
// Parse vhost template
190190
t, err := template.New("nginxVhost").Parse(nginxVhostTemplate)

0 commit comments

Comments
 (0)