Skip to content

Commit

Permalink
Merge 3265342 into dcd9c64
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliot00 committed Dec 9, 2021
2 parents dcd9c64 + 3265342 commit cd877ea
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .quake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ workspace: "examples"
search_url: "http://127.0.0.1:7700"
server_location: "quake_webapp"
editor: vim
port: 9999
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cargo run -- cmd -i "quake.feed"
cargo run -- server -w
```

4. visit: [http://localhost:8000/](http://localhost:8000/) (需要构建前端部份)
4. visit: [http://localhost:9999/](http://localhost:9999/) (需要构建前端部份)


### 前端部分
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ quake cmd -i "quake.feed"
quake server
```
3. visit: [http://localhost:8000/](http://localhost:8000/)
3. visit: [http://localhost:9999/](http://localhost:9999/)
### GUI (TBD)
Expand Down
1 change: 1 addition & 0 deletions _fixtures/configs/.quake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ workspace: "test_dir"
search_url: "http://127.0.0.1:7700"
server_location: "quake_webapp"
editor:
port: 9999
2 changes: 2 additions & 0 deletions quake_core/src/quake_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub struct QuakeConfig {
pub workspace: String,
pub search_url: String,
pub server_location: String,
pub port: u32,
}

impl Default for QuakeConfig {
Expand All @@ -15,6 +16,7 @@ impl Default for QuakeConfig {
workspace: "".to_string(),
search_url: "".to_string(),
server_location: "".to_string(),
port: 9999,
}
}
}
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ fn init_projects(config: Init) -> Result<(), Box<dyn Error>> {
editor: "".to_string(),
search_url: "http://127.0.0.1:7700".to_string(),
server_location: "web".to_string(),
port: 8000,
};

fs::write(&path, serde_yaml::to_string(&config)?)?;
Expand Down

0 comments on commit cd877ea

Please sign in to comment.