# Server environment builds

Generates all the environment variables and files for Bigscreen server apps.  This will normally be executed on Jenkins as part of a server fleet pipeline builder.

Usage:

```
    node app_v6.js \
        --default-config-file "/path/to/default_config.json" \
        --fleet-config-file "/path/to/fleet/config/file.json" \
        --allowed-apps-file "/path/to/fleet/allowed-apps-file.json" \
        --output-folder-path "/path/to/empty/output/folder"
```

Local Dev:

```
    node app_v6.js \
        --default-config-file "$BIGSCREEN_DROPBOX_PATH/Server_Keys/default_config.json" \
        --fleet-config-file "$BIGSCREEN_DROPBOX_PATH/Server_Keys/dev/dev_config.json" \
        --allowed-apps-file "$BIGSCREEN_DROPBOX_PATH/Server_Keys/dev/dev_allowed_apps.json" \
        --output-folder-path ./.out
```


```
    node app_v6.js \
        --default-config-file "/c/Users/DavidPetrie/Bigscreen/server_keys/default_config.json" \
        --fleet-config-file "/c/Users/DavidPetrie/Bigscreen/server_keys/dev/dev_config.json" \
        --allowed-apps-file "/c/Users/DavidPetrie/Bigscreen/server_keys/dev/dev_allowed_apps.json" \
        --output-folder-path ./.out
```