Skip to content

Commit

Permalink
Fix typos and markdowns
Browse files Browse the repository at this point in the history
Remove `$` for shell command so we can click and copy.
  • Loading branch information
kianmeng committed Sep 18, 2022
1 parent 1a371da commit db62f2a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions README.md
Expand Up @@ -50,9 +50,9 @@ Read [**FAQ**](#faq) for more details.

Download the executable for your OS from [**Releases**](https://github.com/mufeedvh/binserve/releases), then just run it:

```
$ mkdir mywebsite/
$ binserve
```sh
mkdir mywebsite/
binserve
```

On the first run, it will create the configuration file and a starter boilerplate for you to get started.
Expand All @@ -75,8 +75,10 @@ Now all you need to do is to edit the `binserve.json` file. (See [**Configuratio

Download the executable from [**Releases**](https://github.com/mufeedvh/binserve/releases) OR Install with `cargo`:

$ cargo install --git https://github.com/mufeedvh/binserve.git

```sh
cargo install --git https://github.com/mufeedvh/binserve.git
```

[Install Rust/Cargo](https://rust-lang.org/tools/install)

### Build From Source
Expand All @@ -88,10 +90,10 @@ Download the executable from [**Releases**](https://github.com/mufeedvh/binserve
* Cargo (Automatically installed when installing Rust)
* A C linker (Only for Linux, generally comes pre-installed)

```
$ git clone https://github.com/mufeedvh/binserve.git
$ cd binserve/
$ RUSTFLAGS="-C target-cpu=native" cargo build --release
```sh
git clone https://github.com/mufeedvh/binserve.git
cd binserve/
RUSTFLAGS="-C target-cpu=native" cargo build --release
```

The first command clones this repository into your local machine and the last two commands enters the directory and builds the source in release mode.
Expand Down
4 changes: 2 additions & 2 deletions src/core/server.rs
Expand Up @@ -150,7 +150,7 @@ pub async fn run_server(config_state: BinserveConfig) -> std::io::Result<()> {
// by default env has to be initialized to log events
let mut logger = Logger::new("");

// enable logging middlware
// enable logging middleware
if config_state.config.enable_logging {
env_logger::try_init_from_env(
env_logger::Env::new().default_filter_or("info")
Expand Down Expand Up @@ -260,7 +260,7 @@ pub async fn run_server(config_state: BinserveConfig) -> std::io::Result<()> {
app_instance.default_service(web::get().to(router))
})
.bind({
// port doens't have to be explicitly specified
// port doesn't have to be explicitly specified
let mut host = config_state.server.host.to_owned();

let address = host.split(':');
Expand Down

0 comments on commit db62f2a

Please sign in to comment.