Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctrine:phpcr:jackrabbit read config options from symfony configuration #62

Open
ivan1986 opened this issue May 6, 2013 · 3 comments

Comments

@ivan1986
Copy link
Contributor

ivan1986 commented May 6, 2013

jackrabbit have host and port options
support in symfony configs please

@dbu
Copy link
Member

dbu commented May 6, 2013

this is supported already, see for example https://github.com/symfony-cmf/cmf-sandbox/blob/master/app/config/phpcr_jackrabbit.yml.dist

maybe we miss documentation? you are welcome to do a PR to add it if its missing somewhere.

@dbu dbu closed this as completed May 6, 2013
@ivan1986
Copy link
Contributor Author

ivan1986 commented May 6, 2013

hmm,
no, we have symfony2 command
doctrine:phpcr:jackrabbit
and in this command call
system("java -jar {$this->jackrabbit_jar} --repo {$this->workspace_dir}/jackrabbit -q > /dev/null &");
but

usage: java -jar jackrabbit-standalone-2.6.0.jar [-?] [-b] [-c <arg>] [-C
       <arg>] [-d] [-f <arg>] [-h <arg>] [-i <arg>] [-l] [-n] [-p <arg>] [-q] [-r
       <arg>] [-R <arg>]
 -?,--help                print this message
 -b,--backup              create a backup of the repository
 -c,--conf <arg>          repository configuration file
 -C,--backup-conf <arg>   backup repository configuration file
 -d,--debug               enable debug logging
 -f,--file <arg>          location of this jar file
 -h,--host <arg>          IP address of the HTTP server
 -i,--cli <arg>           command line access to a remote repository
 -l,--license             print license information
 -n,--notice              print copyright notices
 -p,--port <arg>          TCP port of the HTTP server (8080)
 -q,--quiet               disable console output
 -r,--repo <arg>          repository directory (jackrabbit)
 -R,--backup-repo <arg>   backup repository directory (jackrabbit-backupN)

how set --host and --port when start jackrabbit by doctrine:phpcr:jackrabbit

@dbu
Copy link
Member

dbu commented May 6, 2013

ah, sorry, i misunderstood what you meant. ideally we would take those informations from the default session information and have command options to set them, to have them passed along to jackrabbit. that would be a nice feature. a PR is welcome.

that said, you can also write a shell script that launches jackrabbit with your settings. for production setup, you should use tomcat or another web application container, see https://github.com/jackalope/jackalope/wiki/Running-jackrabbit-in-tomcat-with-mysql

@dbu dbu reopened this May 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants