Skip to content

Commit a64628d

Browse files
Update README.md
1 parent 449fea1 commit a64628d

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,43 @@
3636
| `lang` | string | No | Language code for labels (default: `en`) |
3737
| `format` | string | No | The format of the response, either 'json', 'text', or 'triplet' (default: `json`) |
3838
| `external_ids` | bool | No | Whether to include external IDs in the output (default: `true`) |
39+
40+
---
41+
42+
## Deploy to Toolforge
43+
44+
1. Shell into the Toolforge system:
45+
46+
```bash
47+
ssh [UNIX shell username]@login.toolforge.org
48+
```
49+
50+
2. Switch to tool user account:
51+
52+
```bash
53+
become wd-textify
54+
```
55+
56+
3. Build from Git:
57+
58+
```bash
59+
toolforge build start https://github.com/philippesaade-wmde/WikidataTextifier.git
60+
```
61+
62+
4. Start the web service:
63+
64+
```bash
65+
webservice buildservice start --mount all
66+
```
67+
68+
5. Debugging the web service:
69+
70+
Read the logs:
71+
```bash
72+
webservice logs
73+
```
74+
75+
Open the service shell:
76+
```bash
77+
webservice shell
78+
```

0 commit comments

Comments
 (0)