On this page you can see how to configure the work environment. It is very important to follow the steps as indicated.
MONGO_URLis your application's database URL.
TEST_MONGO_URLis when you run testing.
REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PASSWORD=
Redis is necessary for reactive subscriptions.
REDIS_HOSTis your redis server's URL.
REDIST_PORTdefines which port is redis running.
REDIS_PASSWORDfill this if you have password on your redis server.
HTTPS=false MAIN_APP_DOMAIN=http://localhost:3000 WIDGETS_DOMAIN=http://localhost:3200 DOMAIN=http://localhost:3300 NODE_ENV=development PORT=3300 ERXES_PATH='' API_PATH='' WIDGET_PATH='' WIDGET_API_PATH=''
HTTPSthis is boolean variables, set true if you are using secure ssl.
MAIN_APP_DOMAINthis is your main application's domain where is erxes/erxes repository is running.
WIDGETS_DOMAINyour widget application's domain where is erxes/widgets repository is running.
DOMAINthis is your erxes-api application's domain where is erxes/erxes-api repository is running.
NODE_ENVset to production on live mode, set to development on development mode.
PORTthis option will define which port is your application running, you can change to any port you want.