blob: 807b9efa20ea46a608b2d3b09a5342a07ff0b01c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/bash
# The generate.sh bash file is used to generate all of the necessary .rb files to run the website
#
# To Start Rails Server:
# bundle exec rails server
#
# To Clear the Generated Files:
# git clean -df
#
NOTEST='--skip-test-unit'
set -x
bundle exec rails generate scaffold server $NOTEST
bundle exec rails generate scaffold tournament game:references $NOTEST
bundle exec rails generate scaffold match tournament:references $NOTEST
bundle exec rails generate scaffold team $NOTEST
bundle exec rails generate controller users $NOTEST
bundle exec rails generate model user name:string email:string user_name:string $NOTEST
bundle exec rails generate model user_team_pair user:references team:references $NOTEST
bundle exec rails generate model team_match_pair team:references match:references $NOTEST
bundle exec rails generate scaffold alert author:references message:text $NOTEST
bundle exec rails generate scaffold pm author:references recipient:references message:text $NOTEST
bundle exec rails generate scaffold game name:text players_per_team:integer teams_per_match:integer set_rounds:integer randomized_teams:integer $NOTEST
bundle exec rails generate model game_attribute game:references key:text type:integer $NOTEST
bundle exec rails generate model server_settings $NOTEST
bundle exec rails generate controller search $NOTEST
bundle exec rails generate controller main $NOTEST
bundle exec rails generate controller static $NOTEST
#for the tournament controller to generate options
bundle exec rails generate model tournament_option $NOTEST
bundle exec rake db:drop RAILS_ENV=development
bundle exec rake db:migrate RAILS_ENV=development
bundle exec rake db:seed
#bundle exec rails generate scaffold
|