mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 16:22:42 +00:00
Move NODE_ENV to service file; remove from server.js and config/default.json
This commit is contained in:
@@ -36,6 +36,8 @@ pidfile="/var/run/${program_name}.pid" # File that allows the system to keep
|
||||
|
||||
# Env Setup
|
||||
export HOME=$( getent passwd "homebrewery_runAs" | cut -d: -f6 ) # Gets the home directory of the runAs user
|
||||
export NODE_ENV="local"
|
||||
export PORT=8001
|
||||
|
||||
# Command Setup
|
||||
exec_cmd="${location}/${program_name}/server.js" # Path to the HomeBrewery server.js, /usr/local/bin/ when installed globally
|
||||
|
||||
Reference in New Issue
Block a user