-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable log location for export command #4
Comments
Hey, so just to clarify you wanted to be able to set the location of the logs for the upstart job? I can probably to that in the next few days. I agree, feature parity would be nice. |
Yup, upstart log location, rather than hard-coded I usually prefer Not sure which convention I should break ;0 But parity is a good thing in any event, as noted. Thanks! |
This will also include a command by root creating and chown'ing the directory to whatever the given node user is. Would this work with Capistrano? I don't see any reason why it wouldn't, but thought I'd check. |
Capistrano already chmods the directory to be writable. IMHO, Capistrano is a bit broken when it comes to setting up security properly. It kind of assumes that the SSH account that it's executing scripts from, is the same account you're using to run the application... which I don't agree with. In my particular case, I setup a So based on how I have things setup, I think additionally It doesn't appear that the original Ruby source makes the assumption that it should change ownership -- at least I couldn't find anything there -- https://github.com/ddollar/foreman/blob/master/lib/foreman/export/upstart.rb |
They do chown the logs file, see https://github.com/ddollar/foreman/blob/master/data/export/upstart/master.conf.erb It's part of the upstart job, node-foreman doesn't actually do it. If all else fails, you still have the option of post-processing the upstart files. It wouldn't be perfect, but it's still "automatable" if that's a word. I'm gonna migrate this to a pull request #5 See if those changes will meet your needs. |
Ahh, good find -- apologies. Right you are. Missed it in the Upstart confs! Awesome -- thanks for implementing. One step closer to pulling Ruby out of my server stacks. |
Published this change in v0.0.16 |
For feature parity with the Ruby version of Foreman, it would be helpful to support a configurable
-l
for log location.I'd like to switch over to your variant, since I prefer Node... but we're Capistrano deploying, and Capistrano configures log directories already, so it's nice to be able to pass that to
export
.https://ddollar.github.com/foreman/#EXPORTING
You're missing a few other options there, but we don't need those at the moment.. just the log location for now ;0
Thanks!
The text was updated successfully, but these errors were encountered: