29 lines
731 B
Markdown
29 lines
731 B
Markdown
# Run in local
|
|
```
|
|
make clean
|
|
FLAVOR=lxqt ARCH=amd64 IMAGE=ubuntu:18.04 make build
|
|
make run
|
|
```
|
|
|
|
You can overwrite the local Ubuntu repo using `make LOCALBUILD=de build`.
|
|
|
|
You can run the image as adifferent user `make CUSTOM_USER=newuser run`.
|
|
You can configure your own installed programs by using `APPS` env vriable and `BUILD_DEPS` if you need special dependencies to build those apps.
|
|
|
|
`make BUILD_DEPS="build-essential software-properties-common" APPS="vim-tiny net-tools zenity xz-utils firefox chromium-browser" run`
|
|
|
|
## develop backend
|
|
```
|
|
make shell
|
|
supervisorctl stop web
|
|
cd /src/image/usr/local/lib/web/backend
|
|
./run.py --debug
|
|
```
|
|
|
|
## develop frontend
|
|
```
|
|
cd web
|
|
yarn add
|
|
BACKEND=http://127.0.0.1:6080 npm run dev
|
|
```
|