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]