<< Masa.20101130-update-bbmb-ch | 2010 | Masa.20101126-update-rpdf2txt >>
suspend
Reference
Summary
suspend
Email install http://gag.bbmb.ch on your local machine
ToDo
Install pdfinvoice, mnemonic
masa@masa ~/ywesee $ git clone git://scm.ywesee.com/pdfinvoice masa@masa ~/ywesee/pdfinvoice $ cp ../rpdf2txt/install.rb . masa@masa ~/ywesee/pdfinvoice $ ruby install.rb config masa@masa ~/ywesee/pdfinvoice $ ruby install.rb setup masa@masa ~/ywesee/pdfinvoice $ sudo ruby install.rb install masa@masa ~/ywesee $ scp XXX@$PRODUCTION_SERVER:src/ruby/mnemonic*.tgz . masa@masa ~/ywesee $ tar zxvf mnemonic-0.9.tgz masa@masa ~/ywesee/mnemonic-0.9 $ sudo ruby install.rb
I have found 'testenvironment'
masa@masa ~/ywesee/bbmb.ch $ tail src/util/bbmbapp.rb } end =end end begin # Reconfigure Application require 'testenvironment' rescue Exception end
Note
Check mail addresses that are hard-coded
masa@masa ~/ywesee/bbmb.ch $ grep -r RECIP * masa@masa ~/ywesee/bbmb.ch $ grep -r @g *|grep -v txt|grep pharm masa@masa ~/ywesee/bbmb.ch $ grep -r @y *|grep -v txt|grep ywesee
put testenvironment.rb under src directory
#!/usr/bin/env ruby puts 'loading testenvironment' module BBMB class BbmbApp < SBSM::DRbServer puts "disabling UPDATER" remove_const :RUN_UPDATER RUN_UPDATER = false end class CustomBehaviorGag < CustomBehavior remove_const :MAIL_RECIPIENTS, :MAIL_RECIPIENTS_CC, :MAIL_INJECT_RECIPIENTS, :MAIL_PDF_RECIPIENTS, :MAIL_PDF_RECIPIENTS_CC, :MAIL_PDF_FROM MAIL_RECIPIENTS = ['mhatakeyama@ywesee.com'] MAIL_RECIPIENTS_CC = [] MAIL_INJECT_RECIPIENTS = ['mhatakeyama@ywesee.com'] MAIL_PDF_RECIPIENTS = ['mhatakeyama@ywesee.com'] MAIL_PDF_RECIPIENTS_CC = [] MAIL_PDF_FROM = 'mhatakeyama@ywesee.com' end end
Set a virtual host
masa@masa ~/work $ cat /etc/apache2/vhosts.d/05_bbmbch_vhost.conf <Directory /home/masa/ywesee/bbmb.ch/doc> Options ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> <VirtualHost *:80> DocumentRoot /home/masa/ywesee/bbmb.ch/doc ServerName masapharm.bbmb.ch DirectoryIndex index.rbx RubyAddPath /home/masa/ywesee/bbmb.ch/src RubyRequire 'sbsm/trans_handler' SetHandler ruby-object RubyTransHandler SBSM::FlavoredTransHandler.instance </VirtualHost>
Restart apache
masa@masa ~/work $ sudo /etc/init.d/apache2 restart * Stopping apache2... apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ok] * Starting apache2... apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ok]
Run bbmb.ch/bin/bbmbd
masa@masa ~/ywesee/bbmb.ch $ bin/bbmbd [DEPRECATED] By requiring 'spreadsheet/excel' you are loading a Compatibility layer which provides a drop-in replacement for Spreadsheet::Excel versions <= 0.3.5.1. This code will be removed in Spreadsheet version 1.0.0 no such file to load -- /home/masa/ywesee/bbmb.ch/etc/access_gag.rb loading testenvironment disabling UPDATER /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:148: warning: Object#type is deprecated; use Object#class /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:163: warning: Object#type is deprecated; use Object#class /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:148: warning: Object#type is deprecated; use Object#class /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:163: warning: Object#type is deprecated; use Object#class /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:148: warning: Object#type is deprecated; use Object#class ... /usr/lib64/ruby/site_ruby/1.8/mnemonic/Mnemonic.rb:163: warning: Object#type is deprecated; use Object#class running updater thread running cleaner thread running statistics thread running cleaner thread starting drb-service
Note
Access to http://masapharm.bbmb.ch/
Note
Memo
I should think this system (bbmb.ch) is totally different from oddb.org (de.oddb.org, yus) system
Change only for my local
src/util/session.rb#http_protocol
def http_protocol #'https' 'http' end
Reboot bbmb.ch/bin/bbmbd
Access to http://masapharm.bbmb.ch/
Notes
Next
Ideas
Install pure-ftpd
sudo emerge pure-ftpd ... * Messages for package net-ftp/pure-ftpd-1.0.28: * * Before starting Pure-FTPd, you have to edit the /etc/conf.d/pure-ftpd file! * * It's *really* important to read the README provided with Pure-FTPd! * Check out http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info * and http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info. *
Reference
Setting ftpd
masa@masa ~/work $ sudo vim /etc/conf.d/pure-ftpd ... AUTH="-lpuredb:/etc/pureftpd.pdb" MISC_OTHER="-A -E -X -U 177:077 -d -4 -L100:5 -I 15" ...
Start pure-ftpd
masa@masa ~/work $ sudo rc-update -v show masa@masa ~/work $ sudo rc-update add pure-ftpd default * service pure-ftpd added to runlevel default