-
-
Notifications
You must be signed in to change notification settings - Fork 64
02. Optional Steps
TurtIeSocks edited this page May 24, 2022
·
3 revisions
- There are additional configs options available in
server/src/configs/default.json
that can be utilized by copying them over into your config file. Be sure to maintain the same object structure when copying options over. - Full explanation of all of the config options can be found here
- You can add a
server/src/configs/areas.json
file that's in GeoJSON format (seeareas.example.json
for the format) for your users to be able to visualize your currently scanned areas.
- From the root of the directory
cp example.env .env
nano .env
- If you want to use Google Analytics, you can add your GA Universal ID here.
- If you want to use debug mode, add "ANALYTICS_DEBUG_MODE=true" to your
.env
. Only use debug mode during development. - You can also set a title for the map if you want it to load it up a bit faster compared to the default Map title.
Place your favicon in the public/favicon/
folder, it must be named favicon.ico
. Do not replace the fallback.ico
image, this will cause Git issues if the default favicon is ever changed. In order for changes to take place, you must recompile and restart the server. In some cases, the old favicon may be cached by Nginx or Cloudflare, you'll need to reset those caches if so.
-
yarn build
- manually recompile a new client -
yarn server
- only runs ReactMap's web server -
yarn generate
- generates a new masterfile -
yarn create-locales
- generates new locale files -
yarn create-area
- converts a Poracle geofence into a Geojson file -
yarn migrate:latest
- runs all of the migrations -
yarn migrate:rollback
- rolls back a migration, run twice to reset all of the migrations