Skip to content

Commit 1e1bec6

Browse files
committed
Update Blog “open-sourcing-workshops-on-demand-part2-deploying-the-backend”
1 parent f080b9e commit 1e1bec6

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

content/blog/open-sourcing-workshops-on-demand-part2-deploying-the-backend.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,15 @@ install$ git clone https://github.com/Workshops-on-Demand/wod-backend.git
9494
install$ cd wod-backend/
9595
```
9696

97+
98+
9799
* Examine default installation parameters and adapt when necessary accordingly. Files are self-documented.
98100
* Look at the following files within ansible/group_vars directory.
99101

100102
* `all.yml` file
101103

104+
105+
102106
```shellsession
103107
vi all.yml
104108
---
@@ -170,7 +174,11 @@ SCRIPTPRIVDIR: "{{ WODPRIVDIR }}/scripts"
170174
ANSIBLEPRIVDIR: "{{ WODPRIVDIR }}/ansible"
171175
```
172176

173-
* `wod-backend` file
177+
``
178+
179+
* `wod-backend` file
180+
181+
174182

175183
```shellsession
176184
vi wod-backend
@@ -227,7 +235,11 @@ DATAVISUPORT1-WKSHP-DataVisu101: 22101
227235
DATAVISUPORT2-WKSHP-DataVisu101: 22131
228236
```
229237

230-
* `wod-system` file
238+
``
239+
240+
* `wod-system` file
241+
242+
\
231243

232244
```shellsession
233245
vi wod-system
@@ -261,8 +273,14 @@ WODFEAPIUSER: moderator
261273
WODFEAPIPWD: MotDePasseCompliquéAussi125!!!##
262274
```
263275

276+
277+
264278
See the example below for a backend server.
265279

280+
```shellsession
281+
vi
282+
```
283+
266284
### Backend installation process:
267285

268286
[](https://github.com/Workshops-on-Demand/wod-backend/blob/main/INSTALL.md#for-private-based-workshops-on-demand-private-backend--private-workshops-or-if-you-need-to-modify-defaults)Once you are done with the files, you can can proceed with the installation itself. The installation is based on a common install script [install.sh ](https://github.com/Workshops-on-Demand/wod-backend/blob/main/install/install.sh)that allows the deployment of the different parts of the solution. It can be called as follows:
@@ -317,12 +335,11 @@ The principle remains similar, with a few differences explained below.
317335
* Next, clone the forked repo.
318336
* Edit the `all.yml` and `<groupname>` files to customize your setup. This variable `<groupname>` defines possible backend server in your environement. By default, the project comes with a sample working file named `production` in `ansible/group-vars`. But you could have multiple. In our case, we have defined `sandbox`, `test`, `staging` and several `production` files, all defining a different backend environment. These files will be used to override the default values specified by the public version delivered as part of the default public installation.
319337
* Commit and push changes to your repo.
320-
* Create an `install.priv` file located in `install` directory when using a private repo (consider looking at [install.repo](https://github.com/Workshops-on-Demand/wod-backend/blob/main/install/install.repo) file for a better understanding of the variables).
321-
322-
* Define the WODPRIVREPO and WODPRIVBRANCH variables as follows:
338+
* Create an `install.priv` file located in `install` directory when using a private repo (consider looking at [install.repo](https://github.com/Workshops-on-Demand/wod-backend/blob/main/install/install.repo) file for a better understanding of the variables).
339+
* Define the WODPRIVREPO and WODPRIVBRANCH variables as follows:
323340

324-
* WODPRIVBRANCH="main"
325-
* WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"
341+
* WODPRIVBRANCH="main"
342+
* WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"
326343

327344
**Note:** When using a token
328345

0 commit comments

Comments
 (0)