Update: 24Apr2014 see openshift-basex-quick-start
I hope to release an Openshift quick start cartridge for BaseX soon. Until then here are some quick notes that completely ignore the right way to do this.
1. Use putty to access your gear: https://www.openshift.com/blogs/access-your-application-gear-using-ssh-with-putty
I hope to release an Openshift quick start cartridge for BaseX soon. Until then here are some quick notes that completely ignore the right way to do this.
1. Use putty to access your gear: https://www.openshift.com/blogs/access-your-application-gear-using-ssh-with-putty
2. Install BaseX
cd app-root/data
wget http://files.basex.org/releases/BaseX-latest.zip
unzip *.zip
3. In jetty.xml change the host and port settings to use Env values
4. If the default server, (ruby?) is running kill it.
5. Start the BaseX httpserver
#!/bin/bash
# start basex
cd ${OPENSHIFT_DATA_DIR}basex
nohup bin/basexhttp -X -Dorg.basex.SERVERHOST=$OPENSHIFT_DIY_IP \
-X -Dorg.basex.SERVERPORT=$OPENSHIFT_DIY_PORT \
-p 15005 -e 15006 -s 15007 -U admin -P admin &
wget http://files.basex.org/releases/BaseX-latest.zip
unzip *.zip
3. In jetty.xml change the host and port settings to use Env values
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="port"><Env name="OPENSHIFT_DIY_PORT" default="8080" /></Set> <Set name="host"><Env name="OPENSHIFT_DIY_IP" default="127.0.0.1" /></Set> <Set name="maxIdleTime">60000</Set> <Set name="reuseAddress">true</Set> <Set name="Acceptors">2</Set> <!-- Support for SSL connections . <Set name="confidentialPort">8986</Set> --> </New>
4. If the default server, (ruby?) is running kill it.
5. Start the BaseX httpserver
#!/bin/bash
# start basex
cd ${OPENSHIFT_DATA_DIR}basex
nohup bin/basexhttp -X -Dorg.basex.SERVERHOST=$OPENSHIFT_DIY_IP \
-X -Dorg.basex.SERVERPORT=$OPENSHIFT_DIY_PORT \
-p 15005 -e 15006 -s 15007 -U admin -P admin &
No comments:
Post a Comment