[quote="mbirth"]
[quote="bohrsty"]
ich hatte gerade gesehen, deine namespaces haben auch schon wieder falsche camelcases "OpenCachingDE"...

wieder mal das "c" kleinschreiben
[/quote]
Wer hat sich das denn ausgedacht? Es heißt doch OC bzw. OCDE und nicht ODE … aber gut, Namen sind ja nur Schall & Rauch. Ich passe das heute nacht dann an.

Soll ich dann "OpencachingDE" oder "OpencachingDe" (richtiges CamelCase) machen?
[quote="bohrsty"]ich muss heute eh noch was fuer oc machen, also vielleicht schaffe ich das gleich mit... mach mal bitte einen pull-request, dann uebernehme ich das gleich in den master und von da in next...[/quote]Ich hab Dir gerade mal einen gemacht.

[/quote]
da klappt irgendwas nicht:
Code: Alles auswählen
PHP Warning: array_merge_recursive(): Argument #2 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 316
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 326
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 335
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 339
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 347
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/lib2/common.inc.php on line 31
PHP Warning: require_once(config2/settings.inc.php): failed to open stream: No such file or directory in /var/www/test.opencaching.de/code/htdocs/lib2/common.inc.php on line 31
PHP Fatal error: require_once(): Failed opening required 'config2/settings.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/test.opencaching.de/code/htdocs/lib2/common.inc.php on line 31
-- reinstall triggers, press ENTER to skip or ^C to abort
remember that httpd is down!
PHP Warning: array_merge_recursive(): Argument #2 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/test.opencaching.de/code/htdocs/config2/locale.inc.php on line 31
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 316
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 326
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 335
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 339
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/config2/settings-dist.inc.php on line 347
PHP Notice: Undefined index: rootpath in /var/www/test.opencaching.de/code/htdocs/lib2/common.inc.php on line 31
PHP Warning: require_once(config2/settings.inc.php): failed to open stream: No such file or directory in /var/www/test.opencaching.de/code/htdocs/lib2/common.inc.php on line 31
PHP Fatal error: require_once(): Failed opening required 'config2/settings.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/test.opencaching.de/code/htdocs/lib2/common.inc.php on line 31
die prozedur zum updaten laeuft ueber das skript "bin/checkout"
Code: Alles auswählen
#!/bin/bash
cd /var/www/test.opencaching.de/code
if [ "`git branch|grep next`" != "* next" ]; then
echo "error: you are not in 'next' branch!"
else
echo
echo "-- test for clean working directory"
if [ "`git status|grep -i 'working directory clean'`" == "" ]; then
echo "error: working directory is not clean:"
git status
else
echo "-- fetch origin ..."
git fetch origin
read -p "press ENTER to go on or ^C to abort ..."
echo
echo "-- stop httpd ..."
httpd -k stop
echo "-- merge origin/next ..."
git merge origin/next
echo "-- fixing file owners ..."
bin/filemodes
echo "-- updating database structures ..."
php bin/dbsv-update.php
echo "-- reinstall triggers, press ENTER to skip or ^C to abort"
echo " remember that httpd is down!"
cd htdocs/doc/sql/stored-proc
# will ask for DB root password:
php maintain.php
cd ../../../..
echo "-- importing static data, press ENTER to skip ..."
# will ask for DB root password:
cat htdocs/doc/sql/static-data/data.sql | mysql -uoc_root -p oc_test
echo
echo "-- start httpd ..."
httpd -k start
read -p "-- clear webcache [y/n]? " clearwc
if [ "$clearwc" == "y" ]; then
cd bin
php clear-webcache.php
cd ..
fi
echo "Done."
echo
fi
fi
kannst du das entsprechend anpassen, damit es mit dem composer funktioniert (ist bash), so dass es auch beim ersten aufruf (ohne composer) funktioniert?
ich habe den composer auf dem testserver laut deinen angaben installiert:
Code: Alles auswählen
[root@nano htdocs]# curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:
Your PHP (5.3.3) is quite old, upgrading to PHP 5.3.4 or higher is recommended.
Composer works with 5.3.2+ for most people, but there might be edge case issues.
Downloading...
Composer successfully installed to: /var/www/test.opencaching.de/code/htdocs/composer.phar
Use it: php composer.phar
[root@nano htdocs]# ./composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
- Installing ezyang/htmlpurifier (v4.5.0)
Downloading: connection... Downloading: 100%
- Installing smarty/smarty (2.6.26)
Downloading: 100%
Generating autoload files
danach liefert das checkout-skript aber die o.a. meldungen...