Skip to content

Commit 84b88b3

Browse files
committed
update docs
1 parent f0326f5 commit 84b88b3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/installation.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -288,20 +288,27 @@ export SM_DEV_DB_PORT=3306 # or 3307
288288

289289
You'll want to set the following environment variables (permanently) in your local development environment.
290290

291-
The `SM_ENVIRONMENT`, `SM_LOCALONLY_DEFAULTUSER` and `SM_ALLOWALLACCESS` environment variables allow access to a local metamist server without providing a bearer token.
291+
The `SM_ENVIRONMENT` and `SM_LOCALONLY_DEFAULTUSER` environment variables allow access to a local metamist server without providing a bearer token.
292292

293293
This will allow you to test the front-end components that access data. This happens automatically on the production instance through the Google identity-aware-proxy.
294294

295295
```bash
296296
# ensures the SWAGGER page points to your local: (localhost:8000/docs)
297297
# and ensures if you use the PythonAPI, it also points to your local
298298
export SM_ENVIRONMENT=LOCAL
299-
# skips permission checks in your local environment
300-
export SM_ALLOWALLACCESS=true
301299
# uses your username as the "author" in requests
302300
export SM_LOCALONLY_DEFAULTUSER=$(whoami)
303301
```
304302

303+
To allow the sytem to be bootstrapped and create the initial project, you'll need to add yourself to the two admin groups that allow creating projects and updating project members:
304+
305+
```sql
306+
INSERT INTO group_member(group_id, member)
307+
SELECT id, '<your local username>'
308+
FROM `group` WHERE name IN('project-creators', 'members-admin')
309+
310+
```
311+
305312
With those variables set, it is a good time to populate some test data if this is your first time running this server:
306313

307314
```bash
@@ -335,7 +342,6 @@ The following `launch.json` is a good base to debug the web server in VS Code:
335342
"module": "api.server",
336343
"justMyCode": false,
337344
"env": {
338-
"SM_ALLOWALLACCESS": "true",
339345
"SM_LOCALONLY_DEFAULTUSER": "<user>-local",
340346
"SM_ENVIRONMENT": "local",
341347
"SM_DEV_DB_USER": "sm_api",

0 commit comments

Comments
 (0)