Skip to content
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

Opinion: For Rails app configuration expecting all conf files in shared/config #2

Open
notapatch opened this issue Apr 2, 2014 · 4 comments

Comments

@notapatch
Copy link

Opinion:

I was expecting all configuration files in shared/config and then sym-link to the appropriate directories ... nginx/sites-available say.

This allows me to go to home/myapp/shared/config to check all my configuration files rather than hopping around the Ubuntu system (I mean really am I supposed to remember /etc/nginx/sites-available :-) ).

@bruno-
Copy link
Member

bruno- commented Apr 3, 2014

Hi Richard,
I'm with you on this one, and was thinking about it too.
The main reason why the nginx configuration file is copied to sites-available directory is because this plugin has it that way too.

Being primarily a rails developer, I too would like to have nginx config file in my app shared directory.
In fact, if nginx config was moved to apps shared dir, I think that would solve issue #3 you brought up.

The reason I haven't done this so far is the lack of knowledge from the sysadmin standpoint. For example, what if keeping nginx config file in sites-available is a strong convention in sysadmin world (one that overrides our rails developers comfort)? What if there are benefits to that we're not aware of?

So, before taking an action on this (one that I would like to take), I'll first investigate it and answer a question: are there benefits to keeping the nginx config file in sites-available over the application shared dir?
I guess a good starting point is asking for an opinion on nginx forum or irc..

Let me know if you find a resource related to this.

@notapatch
Copy link
Author

Agreed, if a sysadmins doesn't see something in sites-available they will be out of their comfort zone.

What about 2 symlinks..

  1. shared/config to sites-available
  2. sites-available to sites-enabled

That way a sysadmin would be able to follow what was happening as he would have a 'normal' setup of a config file in sites-available and sites-enabled and could remove sites-enabled and have an effect. While programmers could keep everything in one directory.

Obviously a big assed sign saying 'Deployed by Capistrano' to help them get their bearings.

If you think that's an interesting idea we can run it by the other project and see what they think. Basically more people will understand but the process is less robust.

Of course you might not want to try the idea of someone who uninstalls using rm -rf ~/apps/project name :-)

rich

@bruno-
Copy link
Member

bruno- commented Apr 9, 2014

I opened a question here: kalys/capistrano-nginx-unicorn#21

I see the idea behind 2 symlinks. That seems like a "lot of work".. but we'll see when we learn more about this.

@notapatch
Copy link
Author

Thanks Bruno! I will listen with interest.

On Wed, Apr 9, 2014 at 3:01 PM, Bruno Sutic [email protected]:

I opened a question here: kalys/capistrano-nginx-unicorn#21kalys/capistrano-nginx-unicorn#21

I see the idea behind 2 symlinks. That seems like a "lot of work".. but
we'll see when we learn more about this.

Reply to this email directly or view it on GitHubhttps://github.com/bruno-/capistrano-unicorn-nginx/issues/2#issuecomment-39966878
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants