Skip to content

Improve environment variable setup for development #684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ export DATABASE_URL=
export SESSION_KEY=badkey

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

# Credentials for uploading packages to S3. You can leave these blank if
# you're not publishing to s3 from your crates.io instance.
export S3_BUCKET=
export S3_ACCESS_KEY=
export S3_SECRET_KEY=
export S3_REGION= # not needed if the S3 bucket is in US standard
# Credentials for uploading packages to S3. You can leave these commented
# out if you're not publishing to s3 from your crates.io instance.
# export S3_BUCKET=
# export S3_ACCESS_KEY=
# export S3_SECRET_KEY=
# export S3_REGION= # not needed if the S3 bucket is in US standard

# Remote and local locations of the registry index. You can leave these to
# use a `tmp` subdirectory of the working directory, which is what the
Expand Down
74 changes: 71 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ log = "0.3"
env_logger = "0.4"
rustc-serialize = "0.3"
license-exprs = "^1.3"
dotenv = "0.9.0"
dotenv = "0.10.0"
toml = "0.2"
diesel = { version = "0.12.0", features = ["postgres", "serde_json", "deprecated-time"] }
diesel_codegen = "0.12.0"
Expand Down