Deploy Instructions
From Bot Brackets Wiki
This page exists because I frequently forget steps when pushing code up to the live server. Now I can edit this page every time I make a change to my local environment to make sure I don't forget anything.
Note: SVN commands on server are merge.sh REVFROM REVTO
and checkin.sh -merge REVFROM REVTO "message"
Contents
2016 Contest Deployment (3/14/2016)
- Shut down yaws:
/etc/init.d/yaws stop
- Run a DB backup
- Make clean, then run make
- Start an erlang shell:
erl -pa /usr/lib/yaws/custom/ebin
- Run:
botbrackets_results:upgrade_file("/var/usercontent/botbrackets/results.dat").
- Quit the erlang shell:
q().
- Run:
- Chown / chgrp the DB files back to yaws.
- Start yaws:
/etc/init.d/yaws start
2016 Alpha Deployment (3/2/2016)
- Move stats files from
js_src
tobbstats
:mv /var/usercontent/js_src/*_stats.js /var/usercontent/bbstats/
- Update stats copy script on lamp to point to new directory.
2015 Beta Deployment (2/28/2015)
- Shut down yaws:
/etc/init.d/yaws stop
- Run a DB backup
- Make clean, then run make
- Start an erlang shell:
erl -pa /usr/lib/yaws/custom/ebin
- Run:
botbrackets_game:initialize("/var/usercontent/botbrackets/games.dat").
- Quit the erlang shell:
q().
- Run:
- Chown / chgrp the DB files back to yaws.
- Start yaws:
/etc/init.d/yaws start
2015 Alpha Deployment (2/3/2015)
- Shut down yaws:
/etc/init.d/yaws stop
- Run a DB backup
- Make clean, then run make
- Start an erlang shell:
erl -pa /usr/lib/yaws/custom/ebin
- Run:
botbrackets_season:upgrade_file("/var/usercontent/botbrackets/seasons.dat").
- Quit the erlang shell:
q().
- Run:
- Chown / chgrp the DB files back to yaws.
- Edit
/etc/yaws/conf.d/botbrackets.conf
:- Remove
<opaque>
keys:current_season
,scoring_season
,contest_phase
- Remove
- Start yaws:
/etc/init.d/yaws start
2014 Beta Deployment (3/1/2014)
- Shut down yaws:
/etc/init.d/yaws stop
- Might want to make a backup of db files
- Need to make clean before running make
- Start an erlang shell:
erl -pa /usr/lib/yaws/custom/ebin
- Run:
botbrackets_results:upgrade_file("/var/usercontent/botbrackets/results.dat").
- Quit the erlang shell:
q().
- Run:
- Chown / chgrp the results file back to yaws.
- Start yaws:
/etc/init.d/yaws start
2013 Beta Deployment (3/6/2013)
- Shut down yaws:
/etc/init.d/yaws stop
- Might want to make a backup of db files
- Need to make clean before running make
- Start an erlang shell:
erl -pa /usr/lib/yaws/custom/ebin
- Run:
botbrackets_user:upgrade_file("/var/usercontent/botbrackets/users.dat").
- Quit the erlang shell:
q().
- Run:
- Chown / chgrp the users file back to yaws.
- Delete the schedule file:
rm /var/usercontent/botbrackets/schedule.dat
- Start yaws:
/etc/init.d/yaws start
2012 Pre-Contest Deployment (2/26/2012)
- Shut down yaws:
/etc/init.d/yaws stop
- Run make, make install
- Edit
/etc/yaws/conf.d/botbrackets.conf
:- Add in
<opaque>
:filename_schedule = /var/usercontent/botbrackets/schedule.dat
- Add in
- Delete the games file (the app will recreate):
rm /var/usercontent/botbrackets/games.dat
- Start yaws:
/etc/init.d/yaws start
2012 Pre-Contest Deployment (2/19/2012)
- Shut down yaws:
/etc/init.d/yaws stop
- Might want to make a backup of db files
- Need to make clean before running make
- Edit
/etc/yaws/conf.d/botbrackets.conf
:- Add in
<server>
:start_mod = botbrackets_core
- Add in
<opaque>
:current_season = 2011
- Remove from
<opaque>
:editor_season = 2011
- Add in
- Start an erlang shell:
erl -pa /usr/lib/yaws/custom/ebin
- Run:
botbrackets_bot:upgrade_file("/var/usercontent/botbrackets/bots.dat").
- Quit the erlang shell:
q().
- Run:
- Delete the results file (the app will recreate it in the new format):
rm /var/usercontent/botbrackets/results.dat
- Chown / chgrp the bots file back to yaws.
- Start yaws:
/etc/init.d/yaws start