@@ -56,7 +56,6 @@ without adding new users and packages to your host machine.
5656
5757Make sure you have docker-compose and are able to download ~ 10GB data on the first run.
5858
59-
6059``` sh
6160git clone https://github.com/rust-lang/docs.rs.git docs.rs
6261cd docs.rs
@@ -68,14 +67,31 @@ If you need to store big files in the repository's directory it's recommended to
6867put them in the ` ignored/ ` subdirectory, which is ignored both by git and
6968Docker.
7069
70+ ### Docker-Compose
71+
72+ #### Rebuilding Containers
73+
74+ To rebuild the site, run ` docker-compose build ` .
75+ Note that docker-compose caches the build even if you change the source code,
76+ so this will be necessary anytime you make changes.
77+
78+ #### FAQ
79+
80+ ##### I keep getting the error ` standard_init_linux.go:211: exec user process caused "no such file or directory" ` when I use docker-compose.
81+
82+ You probably have [ CRLF line endings] ( https://en.wikipedia.org/wiki/CRLF ) .
83+ This causes the hashbang in the docker-entrypoint to be ` /bin/sh\r ` instead of ` /bin/sh ` .
84+ This is probably because you have ` git.autocrlf ` set to true,
85+ [ set it to ` input ` ] ( https://stackoverflow.com/questions/10418975 ) instead.
86+
7187### CLI
7288
7389#### Starting web server
7490
7591``` sh
7692# This command will start web interface of docs.rs and you can access it from
7793# http://localhost:3000/`
78- docker-compose run web -p 3000:3000 start-web-server
94+ docker-compose run -p 3000:3000 web start-web-server
7995```
8096
8197#### ` build ` subcommand
@@ -114,7 +130,7 @@ docker-compose run -d db
114130docker exec -it < the container name goes here> psql -U cratesfyi
115131```
116132
117- #### Contact
133+ ### Contact
118134
119135Docs.rs is run and maintained by [ Rustdoc team] ( https://www.rust-lang.org/governance/teams/dev-tools#rustdoc ) .
120136You can find us in #docs-rs on [ Discord] ( https://discord.gg/rust-lang ) .
0 commit comments