Skip to content

Commit b70e741

Browse files
Merge #941
941: Update .env-sample r=carols10cents Also addresses #937 and add notes for #909 in the .env-sample. Also decided to fix up an issue which we sometimes ran into with the `S3_GLOBAL` variable, which was noted in the CONTRIBUTING.md. I thusly removed those notes from there too :).
2 parents 14110eb + a346010 commit b70e741

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

.env.sample

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export DATABASE_URL=
66
# If you are running a mirror of crates.io, uncomment this line.
77
# export MIRROR=1
88

9-
# Key to sign and encrypt cookies with. Change this to a long, random string
10-
# for production.
11-
export SESSION_KEY=badkey
9+
# Key to sign and encrypt cookies with. Must be at least 32 bytes. Change this
10+
# to a long, random string for production.
11+
export SESSION_KEY=badkeyabcdefghijklmnopqrstuvwxyzabcdef
1212

1313
# If you will be running the tests, set this to another database that you
1414
# have created. For example, if your test database is named
@@ -22,7 +22,8 @@ export TEST_DATABASE_URL=
2222
# export S3_BUCKET=
2323
# export S3_ACCESS_KEY=
2424
# export S3_SECRET_KEY=
25-
# export S3_REGION= # not needed if the S3 bucket is in US standard
25+
# not needed if the S3 bucket is in US standard
26+
# export S3_REGION=
2627

2728
# Remote and local locations of the registry index. You can leave these to
2829
# use a `tmp` subdirectory of the working directory, which is what the

docs/CONTRIBUTING.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -316,27 +316,6 @@ with `CTRL-C` and rerun this command every time you change the backend code):
316316
cargo run --bin server
317317
```
318318
319-
> If you get an error that looks like:
320-
>
321-
> ```
322-
> thread 'main' panicked at 'must have `GIT_REPO_URL` defined', src/lib.rs:227
323-
> ```
324-
>
325-
> Edit your `.env` and remove the comment after the `S3_REGION` variable. That
326-
> is, change this:
327-
>
328-
> ```
329-
> export S3_REGION= # not needed if the S3 bucket is in US standard
330-
> ```
331-
>
332-
> to this:
333-
>
334-
> ```
335-
> export S3_REGION=
336-
> ```
337-
>
338-
> and then try running `cargo run --bin server` again.
339-
340319
Then start a frontend that uses this backend by running this command in another
341320
terminal session (the frontend picks up frontend changes using live reload
342321
without a restart needed, and you can leave the frontend running while you

0 commit comments

Comments
 (0)