Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/discourse/files/sudoers

Issue 9377123: Set up proper FastCGI environment for Discourse and use nginx (Closed)
Patch Set: Created Feb. 15, 2013, 9:29 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/discourse/files/logrotate ('k') | modules/discourse/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/discourse/files/sudoers
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/discourse/files/sudoers
@@ -0,0 +1,4 @@
+Cmnd_Alias SPAWN_FCGI = /etc/init.d/spawn-fcgi start, /etc/init.d/spawn-fcgi stop, /etc/init.d/spawn-fcgi restart
+Cmnd_Alias BUNDLE_INSTALL = /usr/local/bin/bundle install --gemfile=/opt/discourse/Gemfile
+
+discourse ALL=(ALL) NOPASSWD: SPAWN_FCGI, BUNDLE_INSTALL
« no previous file with comments | « modules/discourse/files/logrotate ('k') | modules/discourse/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld