ywesee Distributed Invoice Manager HTML Interface, Ruby
This is an application. Therefore it is not distributed as a gem, instead it has Gemfile which specifies all dependencies.
- bundle install
Currently we have neither working unit tnor spec tests.
-
Install apache2
-
Compile and install ruby-240. under /usr/local/ruby-2.4.0
-
Install yus (gem and initialize/load postgres database)
-
Install ydim (gem and initialize/load postgres database)
-
We use daemontools (run scripts under example_site/etc/services) to start, supervise and log yus, ydim and ydim-html
-
Create an id_rsa for ydim using sudo ssh-keygen -t dsa -f /etc/ydim/id_dsa We assume here that you entered 'xxx'. The id_rsa files must belong to the apache user. Therefore sudo chown -R apache /etc/ydim
-
Calling
ruby -e "require 'digest/md5'; p Digest::MD5::hexdigest(ARGV[0])" xxx
will return "f561aaf6ef0bf14d4208bb46a4ccb3ad" -
Change the md5_pass to this value in /etc/ydim/ydim-htmld.yml
-
Adapt all values in /etc/ydim/*.yml to your needs
-
Configure apache for use with rack. See example_site/etc/apache
-
If you want to use a different port than 8050 for the rack service, adapt the run files, the apache conf and/or config.ru
cd /var/www/your_site bundle-240 config build.pg --with-pg-config=/usr/local/pgsql-10.1/bin/pg_config bundle-240 install --path=vendor --without debugger
A bash script for step 2 and 13 is found under example_site/install_needed_sw.sh.
- Masaomi Hatakeyama
- Zeno R.R. Davatz
- Hannes Wyss (up to Version 1.0)
- Niklaus Giger (ported to Ruby 2.4.0 and rack)
- GPLv2