Skip to content

Commit b05ef6f

Browse files
jyn514Joshua Nelson
authored andcommitted
Move 'migrate' before 'build crate' in the README
Ideally, this would be done automatically, but this part of the caching not well-maintained and it's simpler to just ask people to do it themselves.
1 parent 6e50b42 commit b05ef6f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,16 @@ mkdir -p ignored/cratesfyi-prefix/crates.io-index
6363
cargo build
6464
# Start the external services
6565
docker-compose up -d db s3
66+
# Setup the database you just created
67+
cargo run -- database migrate
6668
# Build a sample crate to make sure it works
67-
# This sets up the docs.rs build environment,
68-
# including running the migrations and installing the nightly Rust toolchain.
69+
# This also sets up the docs.rs build environment.
6970
# This will take a while the first time but will be cached afterwards.
7071
cargo run -- build crate regex 1.3.1
7172
# Generate important files for the web navigation
7273
cargo run -- build add-essential-files
7374
# This starts the web server but does not build any crates.
74-
# It does not automatically run the migrations, so you need to do that manually.
75-
cargo run -- database migrate
76-
# Start the web server. It doesn't automatically reload templates though!
75+
# It does not automatically run the migrations, so you need to do that manually (see above).
7776
cargo run -- start-web-server
7877
# If you want the server to automatically reload templates if they are modified:
7978
cargo run -- start-web-server --reload-templates

0 commit comments

Comments
 (0)