# var [![Build Status](https://semaphoreci.com/api/v1/projects/3b306d22-463a-4d49-840c-7aa1a951d1ec/573736/badge.svg)](https://semaphoreci.com/ghophp/var)
var is the god of contract and controls all the rooms and contract between players
takes care of the rooms and pre-game flow
heimdall use the `install.sh` script to install the necessary tools on the CI environment, and deploy the result to `elastic beanstalk`.
you must set the following variables on the CI environment in order to have a sucessfull deploy:
RELEASE_CONFIG_FILE= # this variable contains the fullpath of the config.json file used in production
AWS_DEFAULT_REGION= # region of the beanstalk
AWS_SECRET_ACCESS_KEY= # access key
AWS_ACCESS_KEY_ID = # access id
once you have this variables configured, you must configure the deploy as a `custom script` and execute:
this will download the `aws cli` binary, generate the .zip file that will be put on an S3 bucket, and trigger the deploy on `beanstalk`.
The `install.sh` contains the information regarding your `beanstalk` application and environment. The beanstalk environment must have the following variables so the application run properly:
CONFIG_PATH= # path of the config.json
MARTINI_ENV= # production if you are configuring the prod environment
If you configure the previous step properly, you will endup with a fully functional CI/CD.
### powered by
use martini as a web framework and [heimdall-son](https://github.com/battle-arena/heimdall-son) as the middleware to auth
the production enviroment contains the necessary related environment variables