Skip to content

Instantly share code, notes, and snippets.

@david-truong
david-truong / README.md
Last active April 27, 2016 20:59
For portal-tools-upgrade-db-client

Portal Tools - DB Upgrade Client

The DB Upgrade Client is a to upgrade your Liferay database.

Usage

  • Liferay deployed to an application server.
  • Download the latest version of the tool.
  • Unzip (We recommend: ${liferayHome}/tools/portal-tools-db-upgrade-client)
  • Run java -jar com.liferay.portal.tools.db.upgrade.client.jar
buildLang {
translateClientId = properties["microsoft.translator.client.id"]
translateClientSecret = properties["microsoft.translator.client.secret"]
}
@david-truong
david-truong / gist:716acf595098c8274b5e
Last active October 3, 2015 04:34
Options to SF ruby file
Option 1:
return result[0], result[1].to_json({ :css_path => outputFileName, :sourcemap_path => sourceMapFileName })
Option 2:
css = result[0]
sourceMap = result[1].to_json(
{
:css_path => outputFileName,
:sourcemap_path => sourceMapFileName