You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation.md
+10-4
Original file line number
Diff line number
Diff line change
@@ -288,20 +288,27 @@ export SM_DEV_DB_PORT=3306 # or 3307
288
288
289
289
You'll want to set the following environment variables (permanently) in your local development environment.
290
290
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.
292
292
293
293
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.
294
294
295
295
```bash
296
296
# ensures the SWAGGER page points to your local: (localhost:8000/docs)
297
297
# and ensures if you use the PythonAPI, it also points to your local
298
298
export SM_ENVIRONMENT=LOCAL
299
-
# skips permission checks in your local environment
300
-
export SM_ALLOWALLACCESS=true
301
299
# uses your username as the "author" in requests
302
300
export SM_LOCALONLY_DEFAULTUSER=$(whoami)
303
301
```
304
302
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
+
305
312
With those variables set, it is a good time to populate some test data if this is your first time running this server:
306
313
307
314
```bash
@@ -335,7 +342,6 @@ The following `launch.json` is a good base to debug the web server in VS Code:
0 commit comments