Skip to content

ngiger/steinwies.ch

 
 

Repository files navigation

steinwies.ch

Setup

Requirements

  • Ruby, >= 2.3.1
  • Apache2 with a ProxyPass
  • cronolog (optional)
  • daemontools (for davazd, yusd)

Install

: Ruby and Rubygems
: check your ruby version
% ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

% echo 'gem: --no-ri --no-rdoc' > ~/.gemrc

% cd /path/to/steinwies.ch
% bundle install --path vendor

Configuration

Use sample files in etc directory.

: Application conf (edit for your credentials)
% cp etc/config.yml.sample etc/config.yml

: Apache2 conf
% cp etc/steinwies.ch.conf.sample /etc/apache2/vhosts.d/steinwies.ch.conf

And then, boot application server as bundle exec ./bin/steinwies.

Test

Dependencies

  • Ruby (for the used gems see the Gemfile)
  • Selenium/Watir/geckodriver for spec test (see .travis.yml for setup)

Setup

% git clone https://github.com/zdavatz/steinwies.ch.git
% cd steinwies.ch

### How to run

#### Test suite

We have unit test which use rack-test

`bundle exec rake test`

And we have some spec test, which spawn the Steinwies Rack and DRB servers on port 11080 and 11081 for localhost.
Then we execute some simple access.

`bundle exec rake test`

#### Single feature test

`bundle exec test/feature/kontakt_test.rb --name test_kontakt_submit_kontakt`

Or for a single spec test:

`bundle exec rspec spec/homepage_spec.rb:25`

### Running:

You must start the DRB server process and the Rack-Webserver in two seperate threads using

* `bundle exec bin/steinwies`
* `bundle exec rackup`

## Open problems

* Submitting the form does not work see test_kontakt_submit_kontakt
* Combine logging of apache and running Ruby processes?

## License

Copyright (C) 2006-2016 ywesee GmbH.

This is free software;
You can redistribute it and/or modify it under the terms of the GNU General Public License (GPL v3.0).

See `LICENSE`.

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%