From 3b13848985ee7e78740fa5f7e8142203a3be095b Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 22 Aug 2024 15:20:06 +0200 Subject: [PATCH] Remove --net from docs --- components/deploy/quickstart/TerminalLeft.mdx | 2 +- pages/edge/guides/js-wintercg.mdx | 2 +- pages/edge/guides/laravel.mdx | 2 +- pages/edge/guides/php.mdx | 2 +- pages/edge/guides/python-flask-server.mdx | 2 +- pages/edge/guides/python.mdx | 2 +- pages/edge/guides/react-static-site.mdx | 2 +- pages/edge/guides/static-site.mdx | 4 ++-- pages/edge/guides/wcgi-on-edge.mdx | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/deploy/quickstart/TerminalLeft.mdx b/components/deploy/quickstart/TerminalLeft.mdx index 1cdca1a..43cc4dd 100644 --- a/components/deploy/quickstart/TerminalLeft.mdx +++ b/components/deploy/quickstart/TerminalLeft.mdx @@ -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 ``` diff --git a/pages/edge/guides/js-wintercg.mdx b/pages/edge/guides/js-wintercg.mdx index 5974bc5..48b86d8 100644 --- a/pages/edge/guides/js-wintercg.mdx +++ b/pages/edge/guides/js-wintercg.mdx @@ -133,7 +133,7 @@ $ curl https://-.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 ``` diff --git a/pages/edge/guides/laravel.mdx b/pages/edge/guides/laravel.mdx index 2ee2c8b..53af0b8 100644 --- a/pages/edge/guides/laravel.mdx +++ b/pages/edge/guides/laravel.mdx @@ -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/ diff --git a/pages/edge/guides/php.mdx b/pages/edge/guides/php.mdx index a756b57..8767021 100644 --- a/pages/edge/guides/php.mdx +++ b/pages/edge/guides/php.mdx @@ -162,7 +162,7 @@ Hello World! To test your PHP application locally simply run ```shell copy -$ wasmer run . --net +$ wasmer run . Starting server on http://127.0.0.1:8000 ```` diff --git a/pages/edge/guides/python-flask-server.mdx b/pages/edge/guides/python-flask-server.mdx index 531fce5..bb92ed5 100644 --- a/pages/edge/guides/python-flask-server.mdx +++ b/pages/edge/guides/python-flask-server.mdx @@ -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. diff --git a/pages/edge/guides/python.mdx b/pages/edge/guides/python.mdx index 6a7e495..9a4b7ca 100644 --- a/pages/edge/guides/python.mdx +++ b/pages/edge/guides/python.mdx @@ -149,7 +149,7 @@ $ curl https://-.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 `````` diff --git a/pages/edge/guides/react-static-site.mdx b/pages/edge/guides/react-static-site.mdx index 0a22dc6..bd56a6c 100644 --- a/pages/edge/guides/react-static-site.mdx +++ b/pages/edge/guides/react-static-site.mdx @@ -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. diff --git a/pages/edge/guides/static-site.mdx b/pages/edge/guides/static-site.mdx index 8769acf..8798181 100644 --- a/pages/edge/guides/static-site.mdx +++ b/pages/edge/guides/static-site.mdx @@ -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=`. +`--port` flag, as in `wasmer run . -- --port=`. The arguments after `--` (double dash) are passed to the underlying server running in the diff --git a/pages/edge/guides/wcgi-on-edge.mdx b/pages/edge/guides/wcgi-on-edge.mdx index b1645fb..70710a2 100644 --- a/pages/edge/guides/wcgi-on-edge.mdx +++ b/pages/edge/guides/wcgi-on-edge.mdx @@ -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`.