Search Results for

    Show / Hide Table of Contents

    Deploy a Casewhere product

    Introduction

    In this tutorial you will learn how to deploy a Casewhere product to different environments.

    Tip: A typical enterprise solution usually has at least three different environments:

    • Development
    • Testing
    • Production

    This tutorial has two parts

    1. Link all resources to a product
    2. Deploy the product to a new environment

    Guide

    Part 1. Link all resources to a product

    • Step 1. In Casewhere Admin site, navigate to Pages

    Select the page's name "book-list"

    • Step 2. Click Move to product

    Select the product's name "Cw bookstore" that you already made in create a product step

    image-20211122084331226

    • Step 3. Repeat step 1 and step 2 for Widgets, Workflow definitions, Data sources, Data classes
    • Step 4. Choose the product name in the top-right drop down

    image-20211122085102467

    Navigate between Pages, Widgets, Workflow definitions, Data sources, Data classes and double-check if all resources is linked to the correct product

    image-20211122085209442

    Part 2. Deploy the product to a new environment

    • Step 1. In Casewhere Admin site, navigate to Products

    Select the product's name "Cw bookstore" and click Export button

    image-20211122085707929

    The package file .zip will automatically download

    image-20211122085858934

    • Step 2. Open your new Casewhere environment. This tutorial will use the https://academy.casewhere.com to demonstrate

    • Step 3. In the new environment's Admin site, navigate to Products

    Click Import button image-20211122090517178 and browse to the file you downloaded in step 1

    Wait for the package to be fully imported.

    image-20211122090631830

    Import result dialog appear signifies that the import is complete.

    image-20211122090731990

    Click Close.

    • Step 4. The package is almost ready to run. You will only have to config the domain name, which is environment-specific.

    Note: Make sure to use the correct domain name. In this tutorial we use the environment https://academy.casewhere.com and the domain name is "worker-dev.casewhere.com".

    Note: If you are using Casewhere version 2.7 or later Domain name will be called as Uri

    Navigate to Worker Sites, select the site name and click Edit button

    Field name Actions
    Domain name Change to "academy.casewhere.com/cw-bookstore"

    image-20211122091231302

    Click Save.

    Deploy the product package to new environment success!

    Test

    Go to your new site at https://academy.casewhere.com/cw-bookstore#!/book-list.

    It will have all the functions that you set for your product.

    Using several environments guarantees that your application could be thoroughly tested before released to the users.

    You now know how to export/import a package in a variety of Casewhere environments. You could collaborate with other team members and operate across environments.

    How cool is that!

    You are ready to move to the next step.

    In This Article
    Back to top Generated by DocFX