jeudi 24 septembre 2015

Elastic Beanstalk - Rails - Sidekiq - logging permission

I have successfully deployed a Rails app to Elastic Beanstalk. To run sidekiq I have used this - http://ift.tt/1LAfnIk.

I am facing a problem where, I am using this gem - PubNub - http://ift.tt/1gzHnOm which logs to a file in log/pubnub.log.

Now Sidekiq runs as root user & Passenger runs as webapp user. Im using PubNub both in Sidekiq and in the web app.

Sidekiq happened to create the log file first and thus created it as a root user.

When the web app ran by passenger tried to write to this file, its being denied.

Is there anyway to run sidekiq as the webapp user?

Thanks!

Aucun commentaire:

Enregistrer un commentaire