-
Notifications
You must be signed in to change notification settings - Fork 24
Compiling and Deploying rike | standalone
plarem edited this page Jun 17, 2013
·
1 revision
How to compile and deploy rike and liferay.
WARNING: This approach is not suitable for an already deployed liferay instance. If you already have deployed liferay with other portlets, just follow the steps "Install Prerequisites", "Prepare the Database", "Get rike Sources", "Compile rike". These steps will create all war files, which you then can deploy into your liferay instance.
Install Prerequisites
# package names and/or installer may differ in different linux distributions, consult your distribution manual yum install mysql-server graphviz java-1.7.0-openjdk-devel git # enable mysql on boot chkconfig mysqld on # start mysql /etc/init.d/mysqld start
Get Liferay
cd /opt/ wget "http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.1.1%20GA2/liferay-portal-tomcat-6.1.1-ce-ga2-20120731132656558.zip/download" unzip liferay-portal-tomcat-6.1.1-ce-ga2-20120731132656558.zip
# remove demo portlets # WARNING: this deletes all webapps except ROOT! cd /opt/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ && rm -rf $(ls | grep -v ROOT)
Get rike Sources
git clone https://github.com/arago/rike.git /opt/rike/
Prepare the Database
mysql <<< "create database rike" mysql <<< "grant all on rike.* to rike@localhost identified by 'rike'" mysql <<< "flush privileges" mysql rike < /opt/rike/arago-rike-commons/src/main/resources/schema.mysql
Compile rike
cd /opt/
wget "http://apache.lehtivihrea.org/maven/binaries/apache-maven-3.0.5-bin.tar.gz" tar xfz apache-maven-3.0.5-bin.tar.gz
cd /opt/rike/
/opt/apache-maven-3.0.5/bin/mvn clean package mkdir /opt/liferay-portal-6.1.1-ce-ga2/deploy/ find . -name *.war -exec cp '{}' /opt/liferay-portal-6.1.1-ce-ga2/deploy/ ';'
Start Liferay
cd /opt/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/bin ./catalina.sh run # use ./catalina.sh start for daemon mode
wait until the log (/opt/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/logs/catalina.out) says "INFO: Server startup in [number] ms"
Log in
-
navigate to http://[the-rike-hostname]:8080/
-
log in with
-
the email [email protected]
-
the password test