Public | Automated Build

Last pushed: a year ago
Short Description
Build the bravo server from the latest repo
Full Description

Requirement

Ruby version

  • 2.2.0

System dependencies

  • Rails 4.2.3+
  • PostGres 9.4+
  • DelayedJobActiveRecord

Configuration

.env File (assume you are on development environment)

  • Add .env file in project root directory
    ```
    BR_DATABASE_ADAPTER='postgresql'
    BR_DATABASE_ENCODING='utf8'
    BR_DATABASE_POOL=5
    BR_DATABASE='bravo_admin'
    BR_DATABASE_USERNAME='postgres'
    BR_DATABASE_PASSWORD='root'
    BR_DATABASE_HOST='localhost'

BS_DATABASE_ADAPTER='postgresql'
BS_DATABASE_ENCODING='unicode'
BS_DATABASE_POOL=5
BS_DATABASE='bravoserver'
BS_DATABASE_USERNAME='postgres'
BS_DATABASE_PASSWORD='root'
BS_DATABASE_HOST='localhost'

BS_SYNC_SERVER = 'http://localhost:9292/faye'
BS_SYNC_ADAPTER_JAVASCRIPT_URL = 'http://localhost:9292/faye/faye.js'
BS_SYNC_AUTH_TOKEN = DEVELOPMENT_SECRET_TOKEN
BS_SYNC_ADAPTER = 'Faye'
BS_SYNC_ASYNC = true


### Delayed Job Setup

* Initialize Delayed Job( This is require only once when you configure your server)
```console
rake jobs:work

Sync Setup

  • Initialize sync ( This is require only once when you configure your server)
    rackup sync.ru -E production
    

Installation

Create schedules for competition on BravoReg

  • Go to BravoReg Admin and click on competitions page from top menu
  • Each competition have action called "Manage"
  • Click on "Initial Schedule Creation" for creating a new schedule

Prepare competition Server (From command line)

bundle exec RAILS_ENV=production rake competition:server COMPETITION=< comeptition_id >
Docker Pull Command
Owner
jawgardner
Source Repository

Comments (0)