Skip to content

Commit d11d496

Browse files
authored
Merge pull request #684 from integer32llc/dotenv-0.10.0
Improve environment variable setup for development
2 parents 07411ba + 824b9b1 commit d11d496

File tree

3 files changed

+82
-11
lines changed

3 files changed

+82
-11
lines changed

.env.sample

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ export DATABASE_URL=
1111
export SESSION_KEY=badkey
1212

1313
# If you will be running the tests, set this to another database that you
14-
# have created. Otherwise, leave this blank.
14+
# have created. For example, if your test database is named
15+
# `cargo_registry_test`, this would look something like
16+
# `postgres://postgres@localhost/cargo_registry_test`
17+
# If you don't plan on running the tests, you can leave this blank.
1518
export TEST_DATABASE_URL=
1619

17-
# Credentials for uploading packages to S3. You can leave these blank if
18-
# you're not publishing to s3 from your crates.io instance.
19-
export S3_BUCKET=
20-
export S3_ACCESS_KEY=
21-
export S3_SECRET_KEY=
22-
export S3_REGION= # not needed if the S3 bucket is in US standard
20+
# Credentials for uploading packages to S3. You can leave these commented
21+
# out if you're not publishing to s3 from your crates.io instance.
22+
# export S3_BUCKET=
23+
# export S3_ACCESS_KEY=
24+
# export S3_SECRET_KEY=
25+
# export S3_REGION= # not needed if the S3 bucket is in US standard
2326

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

Cargo.lock

Lines changed: 71 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ log = "0.3"
3333
env_logger = "0.4"
3434
rustc-serialize = "0.3"
3535
license-exprs = "^1.3"
36-
dotenv = "0.9.0"
36+
dotenv = "0.10.0"
3737
toml = "0.2"
3838
diesel = { version = "0.12.0", features = ["postgres", "serde_json", "deprecated-time"] }
3939
diesel_codegen = "0.12.0"

0 commit comments

Comments
 (0)