Skip to content

municz/Reservoir

 
 

Repository files navigation

Welcome to Reservoir

Reservoir is simple web application to manage room reservations.

How to deploy

Currently, Reservoir is using JRuby and can be deployed on JBoss (or any other JavaEE container). First ensure you have JRuby installed (the version should support Ruby 1.9 syntax). Then just follow these few steps:

  1. Setup your database:

    Reservoir is configured to use Postgresql. If you want to use other
    DBMS you need to make some additional changes (if not follow step 1.2):
    
    1.1. Replace jdbcpostgresql adapter in GEMFILE with proper adapters for the
    DB of your choice.

1.2. Ensure your DB is running and is accessible from the machine where Reservoir
is about to be deployed and from this machine.

1.3. Configure your DB in reservoir by editing config/database.yml file. 
       (See rails tutorials for further instruction). By default it is using postgresql
       database named "reservoir" on localhost with username and password "reservoir".
  1. Setup Reservoir:

    2.1. Run "bundle install" in the Reservoir dir.
    
    2.2. Run "bundle exec rake RAILS_ENV=production db:migrate" to create tables with appropriate schema.
    
    2.3. Fill your DB with initial data by running "bundle exec rake RAILS_ENV=production db:seed".
    	If you have .sql file that you want to import, you can do it by placing the file to root of
    	Reservoir before running the command above.
    
    2.4. Run "bundle exec rake RAILS_ENV=production assets:precompile" to compile assets
         Note: This command might take a while (you can run it with --trace to see the progress)
         Note2: if you experience problems with assets loading twice (if calendar is rendered twice), 
         	   you may want to rename app/assets (to st. like app/assets.old)
    
    2.5. For the reset-password-mailer to work, you need to fill out the host, where the application will be running.
    Please do that in config/evnironments/production.rb. At the end of the file edit 'config.action_mailer.default_url_options'
    property.
    
    2.6. Package Reservoir to war by command "warble war".
  2. Deploy:

    You can now deploy the generated war file to your JavaEE container.

License:

Copyright 2013 Jonáš Trantina

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published