bugfix upstart export erb templates

This commit is contained in:
Ricardo Chimal, Jr
2010-09-17 15:18:39 +08:00
committed by David Dollar
parent 7d751470d2
commit e9b5ed81b8

View File

@@ -3,4 +3,4 @@ stop on stopping <%= app %>-<%= process.name %>
respawn
chdir <%= engine.directory %>
exec su <%= user %> -c "PORT=<%= port %> <%= process.command %> >> <%= log_root %>/<%=process.name%>-<%=num%>.log 2>&1"
exec su - <%= user %> -c 'export PORT=<%= port %>; <%= process.command %> >> <%= log_root %>/<%=process.name%>-<%=num%>.log 2>&1'