From c8eef3a4c10c8cc9f080c9710a8df5db24a3ce6d Mon Sep 17 00:00:00 2001 From: Allan Bowe <> Date: Sun, 14 Oct 2018 18:35:33 +0200 Subject: [PATCH] updating deploy process --- docs/dci-backend.md | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/docs/dci-backend.md b/docs/dci-backend.md index 8904afb..23eeb73 100644 --- a/docs/dci-backend.md +++ b/docs/dci-backend.md @@ -5,29 +5,19 @@ The backend for Data Controller consists of a set of Stored Processes, a macro l ## Details -1 - Unzip dcbackend.zip and copy the files to a preferred location on the application server (eg SASApp). This contains the SAS source code and ddl files. +1 - Import datacontroller.spk using SAS Management Console. The location in which this is deployed should be added to the `metadataRoot` value in the `h54s.config` file as per [frontend](dci-frontend.md#details) deployment. -2 - Import datacontroller.spk using SAS Management Console. The location in which this is deployed should be added to the `metadataRoot` value in the `h54s.config` file as per [frontend](dci-frontend.md#details) deployment. +2 - Create a physical staging directory. This will contain the data submitted by editors and awaiting approval. The Stored Process system account (eg `sassrv`) will need write access to this location. -3 - Create a staging directory. This will contain the data submitted by editors and awaiting approval. The Stored Process system account (eg `sassrv`) will need write access to this location. +3 - Register a library in metadata for the control database. The libref should be `DATACTRL`. If this is not possible, then an alternative libref can be used, simply specify it in the configuration component. -4 - Register a library in metadata for your preferred database. The libref should be `DATACTRL`. If this is not possible, then an alternative libref can be used, simply specify it in the configuration in step 6. +4 - Update the configuration component (imported in the SPK) with the following attributes: -5 - Make the `mpeinit.sas` macro available. This "initialisation" macro needs to be available to a fresh Stored Process session. There are several ways to do this, such as to `%include` from the `/Lev1/StoredProcessServer/StoredProcessServer_usermods.sas` file or to create a symlink from the `sasautos` directory. +* `dc_staging_area` - location of staging directory as per step 2 +* `dc_libref` - if you were unable to use the `DATACTRL` libref in step 3, then use the updated libref here +* `dc_admin_group` - enter the name of a metadata group (eg SASAdministrators) that should be given unrestricted access to the tool -6 - Configure the `mpeinit.sas` file. This is where all your site specific locations are stored. The following macro variables should be modified: +7 - Deploy the data model. For this, simply compile and run the `mpe_build()` macro. -* `mperepo` - location of the files uploaded in step 1 -* `mpmetaroot` - location where the STPs were deployed in step 2 -* `mpelocapprovals` - location of staging directory as per step 3 -* `mpelib` - if you were unable to use the `DATACTRL` libref in step 4, then use the updated libref here -* `mpeadmins` - enter the name of a metadata group (eg SASAdministrators) that should be given unrestricted access to the tool - -7 - Deploy the data model. For this, simply run the following code: -``` -%mpeinit() -options insert=(sasautos="&mperepo/build"); -%mpe_build() -``` The next step is to deploy the [frontend](dci-frontend.md).