-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5a9fd8
commit 8411ae6
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |