Skip to main content

Deploying a .Net site on Contensis

Log in to add to favourites

What is a Contensis Block?

Install the Contensis CLI ๐Ÿค–

Fork the Leif .Net example ๐Ÿด

Cloning the repo ๐Ÿค

BASH
1
git clone git@github.com:{github-username}/razor-page-leif-example.git
BASH
1
2
git config --global user.name "Your GitHub Username" git config --global user.email "your.email@example.com"
BASH
1
git clone https://github.com/{github-username}/razor-page-leif-example.git
BASH
1
cd razor-page-leif-example

Using your favourite IDE ๐Ÿคฉ

What are GitHub actions? ๐Ÿค”

CLI Setup ๐Ÿ› ๏ธ

BASH
1
contensis -V
BASH
1
contensis
BASH
1
connect {alias}
BASH
1
login {username}
BASH
1
set project {project}
BASH
1
dev init
BASH
1
2
git commit -m 'getting started with blocks' git push

Making a change ๐Ÿ”„

BASH
1
cd RazorPageLeifExample
BASH
1
dotnet watch

Task: Change the background colour ๐Ÿ–๏ธ

CSS
1
2
3
body { background-color: #ffffff; }
CSS
1
2
3
4
body { background-color: #ddf8ce; /* Change this colour code */ }

Preview the change locally ๐Ÿ‘๏ธ

Release the block ๐Ÿš€

Making a block live

Still need help?

New support request