You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, normally I use "whenever" for my Rails and it will create crontab under root user. Somehow it mess with my mounted volumes and now I see my production.log suddenly was created under root user and not the usual app user.
I figure it must have been changed during log rotation. In order to fix this, I am thinking to create cron jobs under "app" user, but somehow it will not run no matter how I try.
I have tried using "whenever -u app" as well as physically "docker exec" into my container and "su app" to create a crontab under "app" user. Nothing seems to work.
If cron installed as root user, everything is fine though.
The text was updated successfully, but these errors were encountered:
Hi, normally I use "whenever" for my Rails and it will create crontab under root user. Somehow it mess with my mounted volumes and now I see my production.log suddenly was created under root user and not the usual app user.
I figure it must have been changed during log rotation. In order to fix this, I am thinking to create cron jobs under "app" user, but somehow it will not run no matter how I try.
I have tried using "whenever -u app" as well as physically "docker exec" into my container and "su app" to create a crontab under "app" user. Nothing seems to work.
If cron installed as root user, everything is fine though.
The text was updated successfully, but these errors were encountered: