Development
sudo sysctl -w vm.max_map_count=262144
npm i
npm run build
docker-compose up -d
npm test [url]
If url
is not specified, then a local instance will be started.
docker-compose -f docker-compose.production.yml up -d
Or use helm-based deployment:
- Git clone https://github.com/linnovate/reopen repo
- Switch to aks2-prod kube context
- Install root-app helm chart
helm upgrade -i root-app charts/root/ -f charts/root/values.yaml -n argos-prod --atomic
- In argos-prod namespace, inside mongodb pod:
mongo
> use admin
> db.createUser(
{
user: "admin",
pwd: "<password>",
roles: [
{ role: "userAdminAnyDatabase", db: "admin" },
{ role: "readWriteAnyDatabase", db: "admin" }
]
}
)
5. Restart *root-app* deployment to reconnect to the db
## Environments
Name | Type | Description | Default
--- | --- | --- | ---
PORT | Number | Port of the server | `3000`
HTTPS | Boolean | Use HTTPS | `false`
HTTPS_KEY_PATH | String | Path to key file | `undefined`
HTTPS_CERT_PATH | String | Path to cert file | `undefined`
ROOT_LANG | String | `en`\|`he` | `en`
AUTH_PROVIDER | String | `local` \| `google` | `local`
GOOGLE_CLIENT_ID | String | Google client ID | `APP_ID`
GOOGLE_CLIENT_SECRET | String | Google client secret | `APP_SECRET`
MONGODB_URI | String | URI of MongoDB | `mongodb://localhost/icu-dev`