Git Product home page Git Product logo

liferay-setup-script's Introduction

Liferay Setup Script

Multi platform script for setting up a Liferay Portal

What it does?

  1. downloads Liferay bundle (if it doesn't exists yet) with the following command
blade gw initBundle
  1. gets the properties from the selected environment, sets liferay.home and database url name properties and inserts it in a portal-ext.properties file inside bundles folder

Requirements

  • python ^3
  • blade ^4.0.9

Usage

  1. clone the repository inside a Liferay Gradle Workspace
git clone https://github.com/marcosblandim/liferay-setup-script.git
  1. execute it with the default values
python liferay-setup-script
  • usage example
python liferay-setup-script --log-level DEBUG -d lportal -e dev /some/liferay/gradle/workspace/path

use the following command to get help

python liferay-setup-script --help

Future improvements

  • make it possible to pass all fields available in wizard setup, even the database driver (see portal-impl properties file)
    • have default value for all fields
  • improve docs
  • make it works for many versions (currently only works on 7.3)
  • add the option to create the database and the portal in a docker
  • improve logging
  • external bundle option -> use bundle located outside the workspace
    • validate liferay.workspace.home.dir inside gradle.properties file
  • flag for reseting bundles folder
  • implement testing
  • fix args help text
  • validate workspace folder (https://github.com/liferay/liferay-blade-cli/blob/feaeddf8251999c262e3004cc8675bc82eb09c7e/cli/src/main/java/com/liferay/blade/cli/gradle/GradleWorkspaceProvider.java#L250)
  • generate executable
  • use some commit name validator
  • dynamically check if blade is in the latest version
  • add 3 missing properties: company.default.name (default site name), default.admin.first.name and default.admin.last.name (default admin first and last name)
  • should the wizard env have de dev properties?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.