0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 20:42:44 +00:00

Move NODE_ENV to service file; remove from server.js and config/default.json

This commit is contained in:
G.Ambatte
2021-01-03 23:57:43 +13:00
parent bd416233eb
commit e394539742
3 changed files with 2 additions and 3 deletions

View File

@@ -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