mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-07 12:41:08 -05:00
243ea414568fd25eb127c19b2390d448ff75f734
Conflicts: app/models/conference.rb config/routes.rb
Merge branch 'final_questions' of https://github.com/differentreality/osem into differentreality-final_questions
Merge branch 'final_questions' of https://github.com/differentreality/osem into differentreality-final_questions
Merge branch 'final_questions' of https://github.com/differentreality/osem into differentreality-final_questions
Updated the gems, add missing migration for the stats controller, fix most obvious issues with stats
Updated the gems, add missing migration for the stats controller, fix most obvious issues with stats
#OSEM The Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.
##Local Installation
Install Ruby and Ruby on Rails:
- Install Ruby v. 1.9.3, guide at https://gist.github.com/AstonJ/2896818 for CentOS. Debian has Ruby v. 1.9.3 packaged into the Testing suite already.
- Install Apache + mod_passenger, an handy guide is available at: http://nathanhoad.net/how-to-ruby-on-rails-ubuntu-apache-with-passenger
Install OSEM
- Clone the git repository to the directory you want Apache to serve the content from.
git clone https://github.com/openSUSE/osem.git
- Install all the ruby gems.
bundle install
- Install ImageMagick
- Fedora/CentOS:
yum install ImageMagick
- Ubuntu/Debian:
apt-get install imagemagick
- Copy the sample configuration files
cp config/config.yml.example config/config.yml
cp config/database.yml.example config/database.yml
- Setup directories and permissions:
mkdir storage cache system
- Fedora/CentOS
chown apache storage cache system
- Debian/Ubuntu
chown www-data storage cache system
- Setup the database
bundle exec rake db:setup
bundle exec rake db:migrate
bundle exec rake db:seed
- Create a new Apache vhost that should look like this:
<VirtualHost *:80>
ServerName osem.example.org
DocumentRoot /srv/http/osem.example.org/public
RailsEnv development
<Directory /srv/http/osem.example.org/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
-
Connect to osem.example.org and register your first user. Make also sure that Postfix is installed and configured on the system for the confirmation mail to pass through.
-
To make the first registered user an admin:
rails console
User.all
me = User.find('1')
me.role_ids=[3]
Caveats
If you have problems with rails console, try this in the Gemfile:
- gem uninstall rb-readline
- gem 'rb-readline', '~>0.4.2'
If you have problems with jquery-ui, try this in the Gemfile:
- gem "jquery-rails", "~> 2.3.0"
Or make the needed change as explained at http://stackoverflow.com/questions/17830313/couldnt-find-file-jquery-ui.
Languages
Ruby
73.5%
Haml
23.6%
JavaScript
1.3%
SCSS
1%
HTML
0.4%