LoginSignup
0
0

More than 5 years have passed since last update.

supervisorで相対パスの下でアプリを起動する

Posted at

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0