Installing Portal

If you are a product designer working in a Liferay DXP related project this guide might be helpful for you and your daily work.

Getting ready

Install Brew

Make sure you have brew installed in your machine. For that type in your terminal

brew -v

Otherwise follow Homebrew guide

Install Gradle

Make sure you have brew installed in your machine. For that type in your terminal

`gradle -v`

Otherwise

brew install gradle

Install Portal

Open your terminal and go to the place in your machine where you want to have the code. There type

git clone https://github.com/liferay/liferay-portal

Once there go inside the created folder

cd liferay-portal

Then you need to create a database:

Note: you need to install mysql first if you haven’t before

echo "create database lportal" | mysql -u root

Running Portal

Just type

	../bundles/tomcat-9.0.17/bin/catalina.sh run

Update Portal

Note: you will need to install ant → brew install ant

I personally run these 2 commands every morning when I arrive to the office to get the latest changes in the repo.

git pull
ant all

Note: This might take 25 mins

After running these 2 command you will need to run portal as explained before.

Yayyyy!!!

👏👏👏👏👏

Last modified on 2019.11.05
Edit on Github
Menu