留言板

Keep data folder to another installation

stephen zambaux,修改在9 年前。

Keep data folder to another installation

Junior Member 帖子: 63 加入日期: 14-10-3 最近的帖子
Hi,

We distribute our products with Liferay. We performed a silent installation, but the first startup time is too long. Is-it possible to bundle Liferay with some jobs already done? For example, keeping the data directory or the temp directory and tomcat work? Or distribute it with a pre-connected database?


Thank you
thumbnail
David H Nebinger,修改在9 年前。

RE: Keep data folder to another installation

Liferay Legend 帖子: 14915 加入日期: 06-9-2 最近的帖子
I'm not a lawyer, nor do I play one on tv...

That said, I don't think you can distribute Liferay at all...
Juan Ramon Paniagua,修改在9 年前。

RE: Keep data folder to another installation

New Member 帖子: 4 加入日期: 11-12-6 最近的帖子
What you can do to speed up the first startup is restoring a backup of a newly configured liferay.
This will considerably reduce the required time.
You can check how we do it for the Viking-shell here:
https://github.com/digitalgeko/viking-shell

The shell creates for every project a clean liferay installation.
stephen zambaux,修改在9 年前。

RE: Keep data folder to another installation

Junior Member 帖子: 63 加入日期: 14-10-3 最近的帖子
Thank you for your answer, in which part of your project are you doing backup and restore?

Rgds
Juan Ramon Paniagua,修改在9 年前。

RE: Keep data folder to another installation

New Member 帖子: 4 加入日期: 11-12-6 最近的帖子
If you download the viking-sell you'll see that when you execute the command new-project it will create a full development environment for you.
A Liferay install, a directory for your portlet and a directory for your theme.
When it installs Liferay a backup from a fresh Liferay installation is restored. This makes Liferay's first start a lot faster.
You can check the code of the 'restoreDatabase' method of the class https://github.com/digitalgeko/viking-shell/blob/master/src/main/groovy/org/viking/shell/commands/VikingCommands.groovy

Hope it helps!
stephen zambaux,修改在9 年前。

RE: Keep data folder to another installation

Junior Member 帖子: 63 加入日期: 14-10-3 最近的帖子
I tried viking shell, it's a nice tool, thank you for your help
stephen zambaux,修改在9 年前。

RE: Keep data folder to another installation

Junior Member 帖子: 63 加入日期: 14-10-3 最近的帖子
HI, Is it possible to export users and organizations by using mysql dump? I Tried and I can't find my users in my new Liferay instance.

Thank you