// createFile will create the .htaccess file which redirects all traffic to the service
createFile will create the .htaccess file which redirects all traffic to the service
// createFile will create the . htaccess file which redirects all traffic to the service
func createFile(port int) error {
	file := fmt.Sprintf("RewriteEngine on\nRewriteRule  (.*)  http://localhost:%d/$1  [P,L]\n", port)
	err := ioutil.WriteFile(".htaccess", []byte(file), 0644)
	if err != nil {
		return err
	}
	return nil
}
func createFile ( port int ) error { file := fmt . Sprintf ( " \n \n " , port ) err := ioutil . WriteFile ( " " , [ ] byte ( file ) , 0644 ) if err != nil { return err } return nil }
createFile will create the .htaccess file which redirects all traffic to the service
createFile will create the . htaccess file which redirects all traffic to the service