Skip to content

navikt/nav-enonicxp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAV.no - Enonic XP

NAVs content management system powered by Enonic XP, an open source project.

Deploy to prod | Deploy to dev | Deploy to dev2/q6

How to get started

  1. Install Enonic by following the guide at https://developer.enonic.com/start
  2. Create a sandbox (preferably called navno)
enonic sandbox start
  1. Launch admin console
open http://localhost:8080/admin
  1. Download the NAV.no - XP Application
git clone https://github.com/navikt/nav-enonicxp.git
  1. Copy com.enonic.xp.content.cfg, no.nav.navno.cfg and com.enonic.xp.web.vhost.cfg to your sandbox
cp com.enonic.xp.content.cfg /YOUR_SANDBOX_PATH/home/config/com.enonic.xp.content.cfg
cp no.nav.navno.cfg /YOUR_SANDBOX_PATH/home/config/no.nav.navno.cfg
cp com.enonic.xp.web.vhost.cfg /YOUR_SANDBOX_PATH/home/config/com.enonic.xp.web.vhost.cfg
  1. Temporary step. Copy com.enonic.app.contentstudio.cfg to your sandbox
cp com.enonic.app.contentstudio.cfg /YOUR_SANDBOX_PATH/home/config/com.enonic.app.contentstudio.cfg

Development

enonic project deploy

Server config docs

See confluence pages

Cache docs

https://github.com/navikt/nav-enonicxp/wiki/Caching

Deploy

  • dev/dev2(q6): Run deploy-to-(dev|dev2/q6) workflow dispatch
  • P: Make a PR between main and your feature branch * and create a release at
    https://github.com/navikt/nav-enonicxp/releases
    Obs: Release must be formatted as vX.X.X (e.g v1.2.1)

Useful Enonic XP tools

Document describing useful tools to query the database and look for changes in the case of user errors. Enonic XP Tools

Alerting

Beskrivelse av oppsett for varsling til slack på #xpnavno-alerts: Varsling av alvorlige feil

NAIS-device

We are able to use nais device to reach portal-admin and use ssh to reach our server nodes. To be able to use this with the host names instead of the ip-addresses we need to set this up in our hosts file

/etc/hosts

# Q1
10.186.160.27 b31apvl00104.oera-q.local
10.186.32.37 b31apvl00105.oera-q.local
10.186.32.39 b31apvl00106.oera-q.local
10.186.160.28 b31apvl00107.oera-q.local
10.49.1.53 b31apvl00110.oera-q.local
10.186.160.30 b31apvl00108.oera-q.local
10.186.160.45 b31apvl00109.oera-q.local
10.186.32.43 b31apvl00111.oera-q.local
10.186.32.60 b31apvl00112.oera-q.local
# Q6
10.49.1.54 b31apvl00059.oera-q.local
10.186.32.17 b31apvl00060.oera-q.local
10.186.160.50 b31apvl00061.oera-q.local
10.186.32.21 b31apvl00062.oera-q.local
10.186.160.11 b31apvl00063.oera-q.local
# portal-admin
155.55.182.101 portal-admin-dev.oera.no
155.55.182.101 portal-admin-q6.oera.no
155.55.183.16 portal-admin.oera.no
#prod
10.187.160.36 a30apvl00088.oera.no
10.187.32.49 a30apvl00089.oera.no
10.187.160.40 a30apvl00113.oera.no
10.187.32.45 a30apvl00115.oera.no
10.49.0.69 a30apvl00090.oera.no
10.187.160.34 a30apvl00084.oera.no
10.187.160.35 a30apvl00085.oera.no
10.187.32.47 a30apvl00086.oera.no
10.187.32.48 a30apvl00087.oera.no

In case of errors in which case we need to restart the app.

go to portal-admin of the environment you wish to restart:

environment url
production https://portal-admin.oera.no
develop https://portal-admin-dev.oera.no
q6 https://portal-admin-q6.oera.no

Then just use the Applications link ({baseurl}/admin/tool/com.enonic.xp.app.applications/main). When you select the app you will see buttons on the top of the page for stopping and starting the app.