Skip to content

Dev: Build and Deploy

borsTiHD edited this page Jul 31, 2021 · 2 revisions

Please make sure that you have completed the preparations presented here.


Build

Run the following command.
All files for the frontend and backend will be generated.

$ yarn build

You can find the generated files under ./pi-control/dist/.
In addition, a build is zipped under ./pi-control/build/pi-control-v{version}.tar.gz.
If you want to send the build to another host system you can use the zipped build, extract it and run by yarn start on your remote machine.

Start

After your build is ready, you can start it directly.
You only need to execute the following command.

$ yarn start

If you want to run the server under a different port, you can create an .env file for it in root (./pi-control/.env).

PORT_PRODUCTION=8800 // (optional) - determines the port for production build
Clone this wiki locally