@@ -46,14 +46,16 @@ git clone https://github.com/rust-lang/docs.rs.git docs.rs
46
46
cd docs.rs
47
47
# Configure the default settings for external services
48
48
cp .env.sample .env
49
+ # Create the CRATESFYI_PREFIX directory
50
+ mkdir -p ignored/cratesfyi-prefix/crates.io-index
49
51
# Builds the docs.rs binary
50
52
cargo build
51
53
# Start the extenal services
52
54
docker-compose up -d db s3
53
55
# Build a sample crate to make sure it works
54
56
# This sets up the docs.rs build environment, including installing the nightly
55
57
# Rust toolchain. This will take a while the first time but will be cached afterwards.
56
- cargo run web build crate regex 1.3.1
58
+ cargo run -- build crate regex 1.3.1
57
59
# This starts the web server but does not build any crates.
58
60
cargo run start-web-server
59
61
```
@@ -158,13 +160,13 @@ cargo run -- build crate --local /path/to/source
158
160
159
161
``` sh
160
162
# Adds a directory into database to serve with `staticfile` crate.
161
- docker-compose run web database add-directory < DIRECTORY> [PREFIX]
163
+ docker-compose run -- database add-directory < DIRECTORY> [PREFIX]
162
164
163
165
# Updates github stats for crates.
164
166
# You need to set CRATESFYI_GITHUB_USERNAME, CRATESFYI_GITHUB_ACCESSTOKEN
165
167
# environment variables in order to run this command.
166
168
# You can set this environment variables in ~/.cratesfyi.env file.
167
- docker-compose run web database update-github-fields
169
+ docker-compose run -- database update-github-fields
168
170
```
169
171
170
172
If you want to explore or edit database manually, you can connect to the database
0 commit comments