5.4 KiB
Install Open Source Event Manager
This file contains all the information you need to install OSEM. If you run into any problems, do not hesitate to contact us.
If you encounter
An error occurred while installing yajl-ruby (1.2.0), and Bundler cannot continue.
Make sure that `gem install yajl-ruby -v '1.2.0'` succeeds before bundling.
or
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
check that your Ruby version is not greater than ruby-2.3.3.
Versions
OSEM is a semantic versioned app. That means given a version number MAJOR.MINOR.PATCH we increment the:
- MAJOR version when we make incompatible changes,
- MINOR version when we add functionality in a backwards-compatible manner
- PATCH version when we make backwards-compatible bug fixes
Download
You can find the latest OSEM releases on our release page (older release here)
Deploy
OSEM is a Ruby on Rails application. We recommend you run OSEM in production with mod_passenger and the apache web-server. There are tons of guides on how to deploy rails apps on various base operating systems. Check Google ;-)
For more information about Fails and what it can do, see the Fails Guides.
If you have a Heroku account you can also
Configure
There are a couple of environment variables you can set to configure OSEM.
| Variable | Content | Purpose |
|---|---|---|
| OSEM_NAME | openSUSE Events | The name of your page |
| OSEM_HOSTNAME | events.opensuse.org | The host this OSEM instance runs on |
| OSEM_EMAIL_ADDRESS | events@opensuse.org | The address OSEM uses for sending mails |
| OSEM_ICHAIN_ENABLED | true/false | Enable the usage of devise_ichain_authenticatable |
| OSEM_TRANSIFEX_APIKEY | string | Use this api key for transifex. See TRANSLATION.md for details. |
| OSEM_ERRBIT_HOST | errbit.opensuse.org | The errbit host to post exceptions to |
| OSEM_ERRBIT_APIKEY | string | The api key for the errbit host |
| OSEM_FACTORY_LINT | boolean (true/false) | Setting this to false will disable linting of factories before running spec |
| OSEM_GOOGLE_KEY | string | OMNIAUTH Developer Key for GOOGLE |
| OSEM_GOOGLE_SECRET | string | OMNIAUTH Developer Secret for GOOGLE |
| OSEM_FACEBOOK_KEY | string | OMNIAUTH Developer Key for Facebook |
| OSEM_FACEBOOK_SECRET | string | OMNIAUTH Developer Secret for Facebook |
| OSEM_GITHUB_KEY | string | OMNIAUTH Developer Key for GitHub |
| OSEM_GITHUB_SECRET | string | OMNIAUTH Developer Secret for GitHub |
| OSEM_SCHEDULE_CELL_SIZE | integer | Schedule timeslot size to use (in minutes), should be greater than zero, should be divisor of 60 |
| OSEM_SMTP_ADDRESS | smtp.opensuse.org | The smtp server to use |
| OSEM_SMTP_PORT | int | The port on the smtp server |
| OSEM_SMTP_USERNAME | string | The user for the smtp server |
| OSEM_SMTP_PASSWORD | string | The password for the smtp server |
| OSEM_SMTP_AUTHENTICATION | plain, login or cram_md5 | The auth method for the smtp server |
| OSEM_SMTP_DOMAIN | opensuse.org | The HELO domain for the smtp server |
| CLOUDINARY_URL | string | Configure your cloudinary.com cloud name and api key/secret |
| STRIPE_PUBLISHABLE_KEY | string | Publishable Key for Stripe Gateway |
| STRIPE_SECRET_KEY | string | Secret Key for Stripe Gateway |
Online Ticket Payments
We use Stripe for accepting ticket payments securely over the web. Our application uses iFrame for accepting your users' payment details without storing them, making the application PCI SAQ-A Compliant. Please refer to PAYMENTS documentation file for setting up your stripe account and start accepting payments from your users.
Dependencies
ImageMagick
We use ImageMagick for image manipulation so it needs to be available in your installation. If you would like to resize exisiting logos in your OSEM installation you can do so by running the following rake task:
$ bundle exec rake logo:reprocess
openID
In order to use openID logins for your OSEM installation you need to register your application with the providers (Google, GitHub or Facebook) and enter their API keys in config/secrets.yml file, changing the existing sample values.
Recurring Jobs
======= Open a separate terminal and go into the directory where the Rails app is present, and type the following to start the delayed_jobs worker for sending email notifications.
bundle exec rake jobs:work