Rays is a command line tool for Liferay development. It replaces long lines of maven archetype generators with short rails-like commands. Also it allows to manage different environments (development, staging …)
Some usage examples:
$ rays new <project name> $ rays g portlet <portlet name> $ rays deploy $ rays liferay start
Rays should work on any Unix-like system.
Detailed user guide: github.com/dmitri-carpov/rays/wiki/Usage
Make sure you have development tools installed (gcc -v).
Ubuntu: $ sudo apt-get install build-essential
MacOS X: install XCode
1. Install rvm (beginrescueend.com/)¶ ↑
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Follow rvm instructions or just reopen shell window.
$ rvm pkg install zlib $ rvm pkg install openssl $ rvm pkg install readline # optional make sure you have installed libxml2 development packages. Ubuntu: $ sudo apt-get install libxslt-dev libxml2-dev
$ rvm install 1.9.3-p0 NOTE: for XCode 4.2.x execute $ rvm install 1.9.3-p0 --with-gcc=clang
Make version 1.9.3-p0 default
$ rvm --default use 1.9.3-p0
4. Install maven (maven.apache.org)¶ ↑
-
Download a bin from (maven.apache.org/download.html)
-
extract package somewhere (/usr/local or /opt for example)
$ tar -zxf apache-maven-x.x.x-bin.tar.gz
-
Create M2_HOME environment variable and add mvn to PATH
add to ~/.bashrc or ~/.bash_profile
export M2_HOME=<path-to-maven> export PATH=$M2_HOME/bin:$PATH
reopen shell window and type ‘mvn -v’, maven information block should appear
$ gem install raystool
$ __rays_init
$ rays --help