CommaFeed [![Build Status](https://buildhive.cloudbees.com/job/Athou/job/commafeed/badge/icon)](https://buildhive.cloudbees.com/job/Athou/job/commafeed/) ========= Sources for [CommaFeed.com](http://www.commafeed.com/). Google Reader inspired self-hosted RSS reader, based on JAX-RS, Wicket and AngularJS. Deploy on any JavaEE6 container or better yet on OpenShift. Deployment on OpenShift ----------------------- Hosting an application on OpenShift is free. * Create an account on [OpenShift](http://www.openshift.com/). * Add an application, select `JBoss Enterprise Application Platform 6.0`. * For the`Public URL` set the name you want (e.g. `commafeed`). * For the`Source Code` option, click `Change` and set this repository (`https://github.com/Athou/commafeed.git`). * Click `Create Application`. * Click `Add cartridge` and select `MySQL`. * Wait a couple of minutes and access your application. * The defaut user is `admin` and the password is `admin`. Deployment on your own server ----------------------------- For storage, you can either use an embedded HSQLDB database or an external MySQL or PostgreSQL database. You also need maven (and a Java JDK) installed in order to build the application. To install maven and openjdk on Ubuntu, issue the following commands sudo add-apt-repository ppa:natecarlson/maven3 sudo apt-get update sudo apt-get install openjdk-7-jdk maven3 sudo ln -s /usr/bin/mvn3 /usr/bin/mvn Now build the application Embedded HSQL database (not recommended, ok for quick tests but automatic schema updates are not working): mvn clean package tomee:build -Pprod External MySQL database: mvn clean package tomee:build -Pprod -Pmysql External PostgreSQL database: mvn clean package tomee:build -Pprod -Ppgsql It will generate a zip file at `target/commafeed.zip` with everything you need to run the application. * Create a directory somewhere (e.g. `/opt/commafeed/`) and extract the generated zip inside this directory. * Create a directory called `logs` (e.g. `/opt/commafeed/logs`) * On Linux, create the file `bin/setenv.sh` and put the following in it : `export JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled"` * On Windows, create the file `bin/setenv.bat` and put the following in it : `set JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled"` * If you don't use the embedded database, create a database in your external database instance, then uncomment the `Resource` element corresponding to the database engine you use from `conf/tomee.xml` and edit the default credentials. * If you'd like to change the default port (8082), edit `conf/server.xml` and look for `