public
Fork of andmej/como_vamos
Description: An utility to keep track of solved problems to train for programming contests.
Homepage:
Clone URL: git://github.com/febuiles/como_vamos.git
jpemberthy (author)
Fri Dec 19 12:17:21 -0800 2008
febuiles (committer)
Fri Dec 19 14:30:37 -0800 2008
name age message
file .gitignore Wed Dec 03 09:38:00 -0800 2008 User.authorized? now works for different classe... [andmej]
file README.textile Fri Dec 05 20:21:03 -0800 2008 Updated README [andmej]
file Rakefile Sat Nov 29 19:19:17 -0800 2008 Added judge scaffold [andmej]
directory app/ Loading commit data...
directory config/ Fri Dec 05 20:45:29 -0800 2008 Added About page in home_controller [andmej]
directory db/ Wed Dec 03 20:52:39 -0800 2008 Added User.wants_emails? and pretty change pass... [andmej]
directory doc/ Sat Nov 29 19:19:17 -0800 2008 Added judge scaffold [andmej]
directory lib/ Sat Nov 29 20:36:00 -0800 2008 Authentication [andmej]
directory public/
directory script/ Sat Nov 29 19:19:17 -0800 2008 Added judge scaffold [andmej]
directory test/
directory vendor/
README.textile

¿Cómo vamos?

¿Cómo vamos? is an application to keep track of solved problems by different users on online programming judges.

Brief installation

  • git clone the project.
  • Edit the config/database.yml as appropiated.
  • Edit the SMTP server configuration in config/environment.rb
  • rake db:migrate the database.
  • Start the server. That’s it!

Deployment to an online server using Apache

  • Access the server using ssh
  • git clone the project into a non-public folder
  • Make sure the shebangs of files public/dispatch.cgi, public/dispatch.fcgi and public/dispatch.rb are correct.
  • Edit the SMTP configuration in config/environment.rb
  • Change the environment into production:
    • Run rake environment RAILS_ENV=production
    • Uncomment the line ENV[‘RAILS_ENV’] ||= ‘production’ in config/environment.rb
  • Create the production database using phpMyAdmin or whatever.
  • Edit the production section in config/database.yml as appropiated.
  • Migrate the database by running rake db:migrate RAILS_ENV=production
  • Make sure there is a .htaccess inside public/ This file should redirect petitions into the cgi dispatcher (A default .htaccess is included).
  • Make a symbolic link into public/ that is accessible from the net, for example, ln -sf ~/como_vamos/public ~/www/como_vamos
  • That’s it! Point your browswer to to the symbolic link created on the previous step.

Live demo

This application is runing on http://comovamos.factorcomun.org