diff --git a/.env b/.env index b1a8549..902b37a 100644 --- a/.env +++ b/.env @@ -12,5 +12,5 @@ CODETOTAL_WS_HOST=127.0.0.1 DEBUG_MODULES=actions,megalinter,stores,transport # FRONTEND -UPLOAD_FILE_LIMIT_BYTES=10000000 +UPLOAD_FILE_LIMIT_BYTES=10000000 # 10MB \ No newline at end of file diff --git a/README.md b/README.md index c21adfd..016b1cc 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,29 @@ - `npm test` run all unit tests ## Config -- Backend config `packages/backend/src/config.json` -- Fronend config `packages/app/src/config.json` + +Add a `.env` file in the root of the project. + +``` +# MEGALINTER +MEGALINTER_ANALYSIS_URL=http://127.0.0.1:8000/analysis +MEGALINTER_UPLOAD_URL=http://127.0.0.1:8000/upload-file +MEGALINTER_REDIS_URL=redis://127.0.0.1:6379 +MEGALINTER_REDIS_CHANNEL=megalinter:pubsub: + +# BACKEND +CODETOTAL_HTTP_PORT=8081 +CODETOTAL_HTTP_HOST=127.0.0.1 +CODETOTAL_WS_PORT=8080 +CODETOTAL_WS_HOST=127.0.0.1 +DEBUG_MODULES=actions,megalinter,stores,transport + +# FRONTEND +UPLOAD_FILE_LIMIT_BYTES=10000000 # 10MB +``` ## Building For Production + - Config files must be set before the build (see `Config` section) - Run `npm run build` at the root folder - This will create a `dist` folder with the backend code