Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • You will push a base Paas into GitLab

Tasks / Procedure

  • Create a new file "magnolia.properties" in the path:

       paas-training-webapp/src/main/webapp/WEB-INF/config/default

Code Block
#--------------------------------------------
# Here we define some properties not
# configured in the config repository.
# They are used in common before the initialization
# of the repositories.
#
# WARNING: on Windows systems, either use the /
# to separate path elements, or escape the \ with
# another \, i.e C:\\magnolia\\data\\repositories
# or c:/magnolia/data/repositories
#--------------------------------------------
magnolia.home=${magnolia.app.rootdir}
# The directory to expose file system resources from
magnolia.resources.dir=${magnolia.home}/modules
# Pattern to define which resources should be observed by ClasspathScanner
magnolia.resources.classpath.observation.pattern=.*\\.(ftl|yaml)$
# Directories relative to magnolia.resources.dir which will be excluded from FileResourceOrigin observation.
# Also see info.magnolia.resourceloader.file.FileSystemResourceOrigin#EXCLUDED_DIRECTORIES
#magnolia.resources.filesystem.observation.excludedDirectories=META-INF,WEB-INF,cache,docroot,logs,repositories,tmp
magnolia.cache.startdir=${magnolia.home}/cache
magnolia.upload.tmpdir=${magnolia.home}/tmp
magnolia.exchange.history=${magnolia.home}/history
magnolia.repositories.config=WEB-INF/config/default/repositories.xml
magnolia.repositories.home=${magnolia.home}/repositories
magnolia.repositories.jackrabbit.config=WEB-INF/config/repo-conf/jackrabbit-bundle-h2-search.xml

log4j.config=WEB-INF/config/default/log4j2.xml
magnolia.logs.dir=${magnolia.home}/logs

# The directories in which the bootstrap files are searched
magnolia.bootstrap.dir=WEB-INF/bootstrap/author WEB-INF/bootstrap/common

# This is only used for the initial installation afterward the configuration in the config repository is used
# The value is saved in /server/admin
magnolia.bootstrap.authorInstance=true

# Some modules contain optional sample content. They will check this property to decide if they should install
# the sample data
magnolia.bootstrap.samples=true

# Activate UTF-8 support to pages
magnolia.utf8.enabled=false

# Switch to false to enhance the performance of the javascript generation and similar
magnolia.develop=false

# Change to point at your custom Vaadin widgetset and theme
# Your widgetset should always inherit magnolia's Pro widgetset (info.magnolia.widgetset.MagnoliaProWidgetSet)
magnolia.ui.vaadin.widgetset=info.magnolia.widgetset.MagnoliaProWidgetSet
# Your theme should always include magnolia's default theme (admincentral)
magnolia.ui.vaadin.theme=admincentral

# Contact details displayed in the footer of the login form
#magnolia.service.contact=

# Set it to true if bootstrapping/update should be performed automatically
magnolia.update.auto=false

# Location of the file containing both the private and the public keys used to verify authenticity of activation requests
# This file is generated if not present
magnolia.author.key.location=${magnolia.home}/WEB-INF/config/default/magnolia-activation-keypair.properties

# Algorithm for data transfer encryption/decryption https://www.bouncycastle.org/specifications.html
# magnolia.cipher.algorithm=RSA/NONE/OAEPWithSHA3-256AndMGF1Padding

  • Copy the Magnolia project into the empty project you clone from GitLab.
    1. (You should see something like this)

Image Removed

...

  1. Go to Terminal or CMD. From "paas-training/backend/backend-paas-project/"  

  2. Init a new Git repository in the "backend-paas-project" directory
    Code Block
    git init

  3. Connect your local Git repository to a remote repository in GitLab.
    Code Block
    git remote add origin https://gitlab.paastraining.magnolia-platform.com/paas-training/backend-paas-project.git
  4. Create

...

  1. a branch that you will use during the project to deploy. (The branch should have the structure of: <the first letter of your first name and your surname>.)

...

    • For example

...

    • : Francisco Gonzalez - Branch name fgonzalez

...

    • Code Block
      titlegit push

...

    • git checkout -b <yourBranchName>
      

...

  1. Push the project into your own branch
    Code Block
    titlegit push
    git add .
    git commit -m "Initial commit"
    git push origin <yourBranchName>
    1. Use your GitLab Username and the access token 
      1. Username:
        Code Block
        titleUsername for 'https://gitlab.paastraining.magnolia-platform.com':
        - On the left sidebar, select your avatar
        - Select your name or username
      2. Password:
        Code Block
        titlePassword for 'https://francisco.gonzalez@gitlab.paastraining.magnolia-platform.com'
        Access token: glpat-pMU6RqqEXzG3U35XDzSw
    2. Hint: (You should have a structure like this)
      Image Added
  2. Check if you can see your project and your branch in GitLab
  3. In GitLab, go to Settings > Repository > Protected branches > Add protected branch
    1. Select your branch and change the selectors to "Maintainers" 
    2. "Protect" your branch

Image RemovedImage Added