Skip to content

Commit

Permalink
Added README to deploy node
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Aug 13, 2024
1 parent b5a9fd8 commit 8411ae6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions examples/deploy-node/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Deploying a website using Node

This example showcases how to use the Wasmer SDK to deploy a website to Wasmer Edge using Node.

Simply install dependencies:

```
npm i
```

Set the following environment variables:

* `WASMER_TOKEN`: the token to identify your user. Retrieve yours here: https://wasmer.io/settings/access-tokens
* `APP_OWNER`: the owner of your app (you can use your username)


And then, deploy the desired example using Node.js:

* A Static website:

```bash
$ node deploy-static.mjs
```

* A Javascript worker:

```bash
$ node deploy-js.mjs
```

* A PHP Application:

```bash
$ node deploy-php.mjs
```

0 comments on commit 8411ae6

Please sign in to comment.