-
-
Notifications
You must be signed in to change notification settings - Fork 1
Dev: Configuration & Starting
borsTiHD edited this page Jan 6, 2022
·
7 revisions
Please make sure that you have completed the preparations presented here.
Create .env file in root (./pi-control/.env
).
Does not work until the first registration process has gone through via the browser.
If not, the '.env' file will be overwritten by the registration process.
DEV_HOST_IP=192.168.2.78 // (optional) default: 'localhost' - only needed if you want to access over remote (eg. access your raspberry pi)
DEV_PORT_FRONTEND=3000 // (optional) default: 3000 - determines the port for the webpage
DEV_PORT_BACKEND=3001 // (optional) default: 3001 - determines the port for the api server
PORT_PRODUCTION=8800 // (optional) default: 8800 - determines the port for production build
DEV_USER=true // (optional) default: undefined - if set to 'true' you can log in with random login data
TEST_DATA=true // (optional) default: undefined - if set to 'true' the app will use test data if available
Start server:
$ yarn dev