<< | Index | >>
Goal/Estimate/Evaluation:
Experiment
@current_chapter.heading << (EBPS.config.language == 'de' ? 'Fotos' : 'Photos')
Run
masa@masa ~/ywesee/ebps $ ruby1.9 -I lib bin/emediat_de_firefox config="etc/emediat_de_firefox.yml" masa@masa ~/ywesee/ebps $ ruby1.9 -I lib bin/emediat_fr_firefox config="etc/emediat_fr_firefox.yml"
Result
Note
Experiment
module EBPS defaults = { ... 'photos' => '', ...
#photos: /home/masa/ywesee/ebps/Components
Run
masa@masa ~/ywesee/ebps $ ruby1.9 -I lib bin/emediat_de_firefox config="etc/emediat_de_firefox.yml"
Result
Task
Result
Note (in order to activate the new scripts)
Done
(/usr/local/share/src/ebps)
Done
Total coverage: 94.65%
ToDo
Experiment (create table test locally)
masa@masa ~/ywesee/migel_dev $ pg_dump -u postgres migel > migel_db.20110927.sql
masa@masa ~/ywesee/migel_dev $ vim migel_db.20110927.sql :%s/postgres/migel/g
masa@masa ~/ywesee/migel_dev $ createuser migel Soll die neue Rolle ein Superuser sein? (j/n) n Soll die neue Rolle Datenbanken erzeugen dürfen? (j/n) f Soll die neue Rolle weitere neue Rollen erzeugen dürfen? (j/n) n masa@masa ~/ywesee/migel_dev $ psql -U postgres psql (8.4.2) Geben Sie »help« für Hilfe ein. postgres=# select * from pg_user; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig ----------+-----------+-------------+----------+-----------+----------+----------+----------- postgres | 10 | t | t | t | ******** | | migel | 833881636 | t | f | f | ******** | | masa@masa ~/ywesee/migel_dev $ sudo -u postgres createdb -U migel -E UTF8 -T template0 migel masa@masa ~/ywesee/migel_dev $ psql -U postgres psql (8.4.2) Geben Sie »help« für Hilfe ein. postgres=# \l Liste der Datenbanken Name | Eigentümer | Kodierung | Sortierfolge | Zeichentyp | Zugriffsrechte --------------------+-------------+-----------+--------------+------------+----------------------- migel | migel | UTF8 | C | C | oddb | postgres | UTF8 | C | C |
masa@masa ~/ywesee/migel_dev $ sudo -u postgres dropdb migel masa@masa ~/ywesee/migel_dev $ sudo -u postgres createdb -U migel -E UTF8 -T template0 migel masa@masa ~/ywesee/migel_dev $ cat migel_db.20110927.sql | psql -U migel migel
masa@masa ~/ywesee/migel_dev $ cat etc/migel.yml --- #db_user: 'postgres' db_user: 'migel' db_auth: '' ...
Log
$ psql -U postgres Welcome to psql 8.3.8, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help with psql commands \g or terminate with semicolon to execute query \q to quit postgres=# select * from pg_user; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig ----------------+----------+-------------+----------+-----------+----------+----------+----------- ... (10 rows) postgres=# \q $ su # su postgres $ createuser migel Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) y Shall the new role be allowed to create more new roles? (y/n) n postgres@thinpower /home/ywesee $ createdb -U migel -E UTF8 -T template0 migel postgres@thinpower /home/ywesee $ psql -U postgres Welcome to psql 8.3.8, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help with psql commands \g or terminate with semicolon to execute query \q to quit postgres=# \l List of databases Name | Owner | Encoding --------------------+---------------+----------- ... migel | migel | UTF8 ... (15 rows) postgres=# \q
(logout)
$ scp migel_db.20110927.sql.bz2 (server)
(login)
$ su # su postgres $ bzcat migel_db.20110927.sql.bz2 |psql -U migel migel
Log
(login) $ cd git $ tar jxvf migel.tbz $ cd migel $ git init $ git add . $ git commit -m "Initial commit"
Commit
Log
(cd application directory) $ su # git clone git://scm.ywesee.com/migel # chown -R ywesee migel # chgrp -R users migel
Log
$ bin/migeld /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- oddb/util/m10l_document (LoadError) from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/www/migel/lib/migel/model_super.rb:194 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/www/migel/lib/migel/model.rb:5 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from bin/migeld:10
$ ruby -I /home/ywesee/git/ch.oddb.org/lib bin/migeld
$ bin/admin migel> Migel::Model::Migelid.search_by_migel_code('15.30.50.00.1')[0].name -> Pessaire jetable
Note
$ ruby -I /home/ywesee/git/ch.oddb.org/lib bin/migeld
Note
suspend
Commit
Note
Conformation