Skip to main content

Posts

Showing posts from October, 2021

Environment Specific Deployment Profiles For Power Portals CLI Upload

Upload portal customisation using Environment specific portals deployment profile.  Example: Deployment profiles for Development, UAT, PROD The deployment Profile allows you to define a set of variables for the environment in YAML format. If you're creating PROD profile, you can create file under deployment-profiles with the name "PROD.deployment.yml" (that is, <profileTag>.deployment.yml).  And you can run command with tag (<profileTag>) to use this profile: example: pac paportal upload --path "X:\portals\starter-portal" --deploymentProfile PROD In this file, you can have the table (entity) name with table ID, list of attributes, and the values that you want to override while uploading the portal configuration using the deploymentProfile parameter adx_contentsnippet:     - adx_contentsnippetid: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx       adx_name: abc\prod       adx_value:  https://abc.com/xyz/prod    - adx_...

Git Repos Regular Usage Commands

Git Commands git config Example: git config –global user.name “[name]” Example: git config –global user.email “[email address]”   This command sets the author name/email address to be used with the commits.   git init Example: git init [repository name] This command is used to start a new repository.   git clone Example: git clone <path>   This command is used to obtain a repository from an existing URL path.   git add Example: git add .     ( . Adds all the files to staging area) This command adds files to the staging. Example: git add *   This command adds one or more files to the staging area.   git commit Example: git commit -am “[ Type in the commit message]”   This command commit the data into local branch from staging files. Example: git commit -a   This command commits any files you’ve added with the git add command and also commits any files you’ve changed. git diff ...