GithubHelp home page GithubHelp logo

ksalic / gogreen-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 393.77 MB

Home Page: gogreen-demo.vercel.app

Java 22.61% JavaScript 28.81% HTML 0.10% CSS 27.43% FreeMarker 3.24% Groovy 0.06% Python 0.14% SCSS 13.75% Ruby 0.01% Shell 0.25% Dockerfile 0.15% Procfile 0.02% TypeScript 3.42%

gogreen-demo's Introduction

Running locally

Optionally, enable the URLRewriteFilter

The URL Rewriter has been set up in this project on the CMS and site part, however the site's URLRewriteFilter has been commented out so the redirecting functionality is off on production, preventing users to add malicious redirects.

If you want to demo URL rewriting on your local machine, uncomment out in the site's web.xml the element for RewriteFilter. Do not commit this change.

Run it

Hippo Go Green uses the Maven Cargo plugin to run the CMS and site locally in Tomcat. From the project root folder, execute:

mvn clean install
mvn -P cargo.run

Storages on when running locally with Cargo: The repo.path system property is predefined in the root pom as 'storage', relative to project directory. The es.path system property, used by the embedded elasticsearch.war, is predefined as 'elasticsearch', relative to the repo.path

Note: (on Windows at least) when the repo.path property is supplied on the command line, the Elasticsearch data will be 'elasticsearch' in the Tomcat8x directory.

Access the CMS at http://localhost:8080/cms, and the site at http://localhost:8080/site Logs are located in target/tomcat8x/logs

Building distribution

To build a Tomcat distribution tarball containing only deployable artifacts:

mvn clean install
mvn -P dist

See also src/main/assembly/distribution.xml

Using JRebel

Set the environment variable REBEL_HOME to the directory containing jrebel.jar. Build with:

mvn -Djrebel

or add -Djrebel to your MAVEN_OPTS environment variable:

export MAVEN_OPTS="$MAVEN_OPTS -Djrebel"

Note: the latter always enables JRebel. To disable temporarily (e.g. when building/deploying a release) use

mvn -P -jrebel

Do not activate JRebel using "mvn -P jrebel", as it then deactivates the "default" profile.

Hot deploy

To hot deploy, redeploy or undeploy the CMS or site:

cd cms (or site)
mvn cargo:redeploy (or cargo:undeploy, or cargo:deploy)

Special thanks:

  • To the PugPig team (PugPig.com) about the help we got from them for the IPad magazine support (@see site/src/main/webapp/WEB-INF/jsp/ipadmag/events/detail.jsp)

gogreen-demo's People

Contributors

jeroenhoffman avatar machak avatar jcjacobi avatar jasperfloorbloomreach avatar ksalic avatar woonsanko avatar shweta-shivangi avatar mohitbloomreach avatar bandanasingh01 avatar hippo-readonly avatar ajbanck avatar lachire avatar mjmetter avatar abogaart avatar ate avatar hippegger avatar

Watchers

 avatar

Forkers

bloomreach-demo

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.