ironjan / klausurtool-ror

Previous Klausurtool of the FSMI UPB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Klausurtool RoR

Superseded by https://git.cs.upb.de/fsmi/fsmi-klausurarchiv (FSMI internal).

Codacy BadgeBuild Status

Fehler melden, Feedback geben

  • Sieh im Issue Tracker nach, ob das Feedback oder Problem bereits bekannt wird
  • Falls es nicht nicht bekannt ist, erstelle einen neuen Issue
  • Sei bitte so ausführlich wie möglich
  • Falls es um eine bestimmte Seite im Tool geht, bitte URL mit einfügen

Mithelfen

Wirf einen Blick in den Issue Tracker. Dort findest du alle bekannten Probleme und Erweiterungswünsche. Über das Label high-prio findest du die Issues, die am wichtigsten sind.

Backup der Datenbank zum Testen nutzen

  1. Get a data.yml file created by bin/rake db:dump on production server
  2. Disable foreign key checks on your local DB: SET GLOBAL foreign_key_checks = 0;
  3. Execute RAILS_ENV=production bin/rake db:data:load; RAILS_ENV=development bin/rake db:data:load
  4. Enable foreign key checks on your DB: SET GLOBAL foreign_key_checks = 1;

Getting started

  • Install RVM. You can use this to install rails and ruby.
  • Check that ruby and MySQL/MariaDB are installed
  • ruby -v
  • mysql --version
  • Other requirements: git and sed
  • Install dependencies via bundle install
  • If you don't have sudo access, you can install the gems to a path of your choice via e.g. bundle install --path $HOME/bundle/
  • Copy config/secrets.yml.template to config/secrets.yml and generate different values for secret_key_base (You can use bin/rake secret)
  • Create the schemas klausurtool, klausurtool_development, and klausurtool_test in your database
  • Load the db:schema via bin/rake db:schema:load
  • In development mode, RoR will tell you, when migrations need to be run via bin/rake db:migrate
  • Start the server via bin/rails server
  • The -e switch can be used to start a server in a different environment
  • Start with bin/rails server --binding 0.0.0.0 to listen to external requests
  • This does not automatically mean "production mode"
  • Pre-Compile assets for production via RAILS_ENV=production bin/rake assets:precompile

Deployment

Das Deployment ist ähnlich aufgebaut wie auf Ralf Ebert's Blog beschrieben. Es gibt folgende Abweichungen:

  • MySQL statt Prostgres
  • Deployment-Pfad und SSH-Settings

Versioning

Incompatible updates

  • In 0.7.0 the archive was changed to be independent of old_folder_instances
  • The sql-script data_conversion_0.6.6_to_0.7.0.sql has to be executed after updating to 0.7.0 (Don't forget to backup!)

Links that helped to get started

The goal of this list is to collect links that helped me Getting started. It was started in the middle of the project and is therefore incomplete.

About

Previous Klausurtool of the FSMI UPB.

License:Apache License 2.0


Languages

Language:JavaScript 46.1%Language:CSS 35.6%Language:Ruby 13.0%Language:HTML 5.1%Language:GCC Machine Description 0.1%Language:PLpgSQL 0.1%