supervisorの *.conf
配置ファイルのdirectoryを編集する
↓このように
[program:HelloWorld]
directory=/home/ec2-user/GoCode/hello/
command=go run /home/ec2-user/GoCode/hello/HelloWorld.go
autostart=true
autorestart=true
startsecs=10
stdout_logfile=/var/log/HelloWorld.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/HelloWorld.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB