thanks
1.0.0
该网络应用程序显示了为生锈做出贡献的人们。
您需要稳定的生锈才能奔跑。
设置应用程序。您需要安装Postgres。和我认为SQLite3标头。
克隆它:
$ git clone https://github.com/rust-lang-nursery/thanks
$ cd thanks设置数据库URL。用所需的任何凭据替换。
$ cp .env.sample .env检查它以确保其设置正确;只有您才能知道本地Postgres安装的情况。
构建它:
$ cargo install diesel_cli --no-default-features --features postgres
$ diesel setup
$ cargo build克隆到某个地方的生锈存储库。我把~/src的
$ cd ~ /src
$ git clone https://github.com/rust-lang/rust从存储库中导入数据:
$ cd - # go back to our app
$ cargo run --bin populate --
--name Rust
--github rust-lang/rust
--url https://github.com/rust-lang/rust/
--path ~ /src/rust # or wherever you put the Rust source这将需要几分钟。在撰写本文时,Rust有大约61,000件事需要处理。
运行服务器:
$ cargo run --bin thanks将浏览器打开到显示的URL。
从Commannd行访问数据库:
psql -p 5432 -h localhost -U postgres -d thanks如果您的数据库带有旧名称( rust_contributors或任何其他名称),则有两个选择:
psql -p 5432 -h localhost -U postgres ,通过运行ALTER DATABASE rust_contributors RENAME TO thanks和编辑.env文件以使用新名称。如果您正在研究populate二进制文件,那么能够快速删除本地数据库很有用:
$ cargo run --bin the-big-red-button -- --all您还可以通过传递--name NAME选项删除一个项目。
是时候该新版本了,
$ cargo run --bin new-release -- --name Rust --version 1.15.0 --path ~ /src/rust # or wherever your Rust is --link http://link/to/changelog随着您想要更新,运行
$ cargo run --bin update-commit-db这将击中GitHub的API,而不是使用Rust的本地结帐,因为假设这将在服务器上运行,我们不想在那里进行完整的Git Checkout。
要从页面上隐藏某人,您可以运行opt-out二进制(如果要还原更改,请附加一个额外的--opt-in选项)):
cargo run --bin opt-out -- --email [email protected]