view · edit · sidebar · attach · print · history

20121114-setup-bbmb-flavors

<< | Index | >>


Summary

  • Setup bbmb, vetoquinol.bbmb.ch in local.
    • tried to setup with vetoquinol flavor.

Index


Setup bbmb flavors

Ref.

  1. . checkout bbmb
  2. . checkout flavor (vetquinol.bbmb.ch etc.)
  3. . create symbolic link to bbmb/bin into flavor
  4. . use ruby 1.8.7
  5. . install gems
    • ruby-json
    • sbsm
    • htmlgrid
    • yus
    • rclconf (Not Documented)
    • character-encodings (@Not Documented, see below)
    • rmail (Not Documented)
    • hpricot (Not Documented)
    • ydim (Not Documented)
    • odba (@Not Documented)
    • dbi (0.4.5, Not Documented)
    • dbd-pg (0.3.9, Not Documented)
    • deprecated (2.0.1, Not Documented)
  6. . update pg,dbd setting
    • renamed DBI:pg --> DBI:Pg in lib/bbmb/persistence/odba.rb
  7. . cd flavor
  8. . mkdir etc
  9. . touch(copied from production) config files.
    • etc/config.yml
    • etc/polling.yml
    • etc/yus.yml
    • etc/ydim.yml
  10. . create bbmb role in postgres

Loading path problem.

$ ruby -rrubygems bin/bbmbd config="etc/config.yml"
bin/bbmbd:9:in `require': no such file to load -- bbmb/config (LoadError)
        from bin/bbmbd:9
  • bbmb/bin/bbmbd
  • bbmb/bin/admin
# does not work with symbolic link, expectedly
$: << File.expand_path('../lib', File.dirname(__FILE__))

# added static full path
$: << "/home/yasuhiro/Documents/workspace/ywesee/bbmb/lib"

character-encodings gem

cannot install character-encoding gem.

rb_utf_tr.c: In function ‘tr_trans_do’:
rb_utf_tr.c:107:14: error: variable ‘modified’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make: *** [rb_utf_tr.o] Error 1
gem install character-encodings -v 0.3 -- --with-cflags=\"-Wno-unused-but-set-variable\"

or in .bundle/config

BUNDLE_BUILD__CHARACTER-ENCODINGS: --with-cflags=-Wno-unused-but-set-variable

regexp problem

This project needs oniguruma ruby 1.8.6-p369 ...

/home/yasuhiro/Documents/workspace/ywesee/var/bbmb/lib/bbmb/util/updater.rb:5:in `require': /home/yasuhiro/Documents/workspace/ywesee/var/bbmb/lib/bbmb/util/polling_manager.rb:48: undefined (?...) sequence: /name=(?:(?:(?<quote>['"])(?:=\?.+?\?[QB]\?)?(?<file>.*?)(\?=)?(?<!\\)\k<quote>)|(?:(?<file>.+?)(?:;|$)))/ (SyntaxError)
        from /home/yasuhiro/Documents/workspace/ywesee/var/bbmb/lib/bbmb/util/updater.rb:5
        from /home/yasuhiro/Documents/workspace/ywesee/var/bbmb/lib/bbmb/util/server.rb:10:in `require'
        from /home/yasuhiro/Documents/workspace/ywesee/var/bbmb/lib/bbmb/util/server.rb:10
        from bin/bbmbd:11:in `require'
        from bin/bbmbd:11

temporary patch (for bbmb/lib/bbmb/util/polling_manager.rb:48)

#@@ptrn = /name=(?:(?:(?<quote>['"])(?:=\?.+?\?[QB]\?)?(?<file>.*?)(\?=)?(?<!\\)\k<quote>)|(?:(?<file>.+?)(?:;|$)))/i
 @@ptrn = /name=(.*)/i

SSL Cert

cd /var/www/vetoquinol.bbmb.ch/etc/
$ openssl genrsa -des3 -out vetoquinol.bbmb.ch.key 1024
$ openssl req -new -key vetoquinol.bbmb.ch.key -out cabundle.crt
$ openssl x509 -req -days 365 -in cabundle.crt -signkey vetoquinol.bbmb.ch.key -out vetoquinol.bbmb.ch.crt

:

Yus setting

yus_grant yasaka@ywesee.com login ch.bbmb.Admin
yus_grant yasaka@ywesee.com login ch.bbmb.Customer
view · edit · sidebar · attach · print · history
Page last modified on November 19, 2012, at 02:16 AM