I do not understand
Call the make command in the shell
――It should be okay if it is not a full pass
cmd := exec.Command("/home/yuta/AWS/go/bin/exec.sh", domain.Name)
cmd.Run()
--Give execute permission with chmod in advance
exec.sh
#!/bin/sh
cd /home/yuta/AWS
make make-env-config ENV_FILE=.env DOMAIN_NAME=${1}
Recommended Posts