Skip to content

Commit

Permalink
Remove --net from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Aug 22, 2024
1 parent 6cc1e7e commit 3b13848
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/deploy/quickstart/TerminalLeft.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```shell copy filename="wasmer-hello"
$ wasmer run ./target/wasm32-wasmer-wasi/release/wasmer-hello.wasm --net --env PORT=3000
$ wasmer run ./target/wasm32-wasmer-wasi/release/wasmer-hello.wasm --env PORT=3000
Listening on http://127.0.0.1:3000
```
2 changes: 1 addition & 1 deletion pages/edge/guides/js-wintercg.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ $ curl https://<your-app-name>-<you>.wasmer.app
To run your worker locally, simply run

```shell copy
$ wasmer run . --net
$ wasmer run .
2023-10-05T09:46:19.513568Z INFO wasmer_winter: starting webserver
2023-10-05T09:46:19.514089Z INFO wasmer_winter::server: starting server on 0.0.0.0:8080 listen=0.0.0.0:8080
```
Expand Down
2 changes: 1 addition & 1 deletion pages/edge/guides/laravel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ main-args = ["-t", "/app/public", "-S", "localhost:8080"]
You can test that the app works properly with Wasmer by running in your shell:

```bash
$ wasmer run . --net
$ wasmer run .
```

And then visiting http://localhost:8080/
Expand Down
2 changes: 1 addition & 1 deletion pages/edge/guides/php.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Hello World! <more text..>
To test your PHP application locally simply run

```shell copy
$ wasmer run . --net
$ wasmer run .
Starting server on http://127.0.0.1:8000
````
Expand Down
2 changes: 1 addition & 1 deletion pages/edge/guides/python-flask-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ env:
Now, we can test if our application runs with wasmer
```shell copy
$ wasmer run . --net
$ wasmer run .
* Serving Flask app '/src/main'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
Expand Down
2 changes: 1 addition & 1 deletion pages/edge/guides/python.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ $ curl https://<your-app-name>-<you>.wasmer.app

To run your Python application locally simply run
```shell copy
$ wasmer run . --net --env PORT=9090
$ wasmer run . --env PORT=9090
Starting server on http://127.0.0.1:9090
``````

Expand Down
2 changes: 1 addition & 1 deletion pages/edge/guides/react-static-site.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public = "dist" # 👈🏼 dist or any other directory (keep consistent with pac
You can now test your site locally by running the following command:

```shell copy
$ wasmer run . --net -- --port 9000
$ wasmer run . -- --port 9000
```

This will start a local server using the Static Web Server on `http://localhost:9000` and now you can access your site on the web at the URL provided in the output.
Expand Down
4 changes: 2 additions & 2 deletions pages/edge/guides/static-site.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ You can also test your site locally before deploying the app on Wasmer Edge by
running the following command:

```shell copy
wasmer run . --net
wasmer run .
```

This will start a local server using the Static Web Server on
`http://localhost:80`. You can also specify a different port by passing the
`--port` flag, as in `wasmer run . --net -- --port=<your-port>`.
`--port` flag, as in `wasmer run . -- --port=<your-port>`.

<Callout type="info" emoji="ℹ️">
The arguments after `--` (double dash) are passed to the underlying server running in the
Expand Down
2 changes: 1 addition & 1 deletion pages/edge/guides/wcgi-on-edge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ This will create a `hello-cgi.wasm` file in the `target/wasm32-wasi/release` dir
Now we can test our CGI app locally using the `wasmer` command-line.

```bash copy
wasmer run . --net
wasmer run .
```

The above command will start a local server on port `8000`.
Expand Down

0 comments on commit 3b13848

Please sign in to comment.