Skip to content

wids-eria/Trails-Forward-server

 
 

Repository files navigation

To setup 1.9.2 with improved Garbage Collection:
http://metaskills.net/2011/03/09/gc-tune-ruby-1.9.2-with-rvm/


To install PostgreSQL:

$ brew install postgresql
  or
$ brew upgrade postgresql

Reboot, then call:

$ initdb /usr/local/var/postgres

To create a postgres user:

$ createuser <username_from_database.yml>

Be sure to make them a super-user

To set up the database:

$ rake db:create:all db:reset


To run the tests:

$ rake


Notes on world ticking:

* config/schedule.rb runs on deploy to installs two Cron jobs. TurnScheduler#mark_for_processing, and #turn_next_world
* each world tick is handled by Jobs::WorldTurner#turn_a_world which queues up a bunch of beanstalk jobs to be processed by stalker processes.
* WorldTurn (not -er) encapsulates logic for a single turn.



This file is part of TrailsForward.

    TrailsForward is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    TrailsForward is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with TrailsForward.  If not, see <http://www.gnu.org/licenses/>.

About

No description, website, or topics provided.

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 90.6%
  • JavaScript 9.3%
  • Other 0.1%