This web-application used in National Research University of Electronic Technology (Russia, Moscow) for event "Brainiac" in social network "Vkontakte".
- postgresql-9.1+
- ruby-2.0.0-p247 (or later)
- Create database user with name "brainiac".
- Clone this application to your server.
- Insert your VK-id to sql-script renew_schema.sql and execute it to create tables, indexes and initialize some records.
- Install gem bundler (
gem install bundler
) - Install requirement gems to application (
bundle install
) - Create file database.yml in directory config with database connection settings
development:
adapter: postgresql
host: localhost
port: 5432
username: brainiac
password: your_password
database: brainiac
schema_search_path: brainiac
encoding: utf8
test:
adapter: postgresql
host: localhost
port: 5432
username: brainiac
password: your_password
database: brainiac_test
schema_search_path: brainiac
encoding: utf8
production:
adapter: postgresql
host: localhost
port: 5432
username: brainiac
password: your_password
database: brainiac
schema_search_path: brainiac
encoding: utf8
- Precompile asset (
rake assets:precompile
) - Start web-server unicorn (
bundle exec unicorn_rails -E production -D
)
Copyright (c) 2013 Gorodishenin Anton. See LICENSE for details.