You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Did you successfully [install the `wasm32-wasip2` target](#install-the-tools)?
696
-
* Is your version of Rust up to date (`cargo --version`)? The Spin SDK needs Rust 1.78 or above.
697
-
698
-
> The Rust target used to be called `wasm32-wasi` (without the `p1`). Even if you already installed the old target, you'll need to install the new one!
693
+
* Is your version of Rust up to date (`cargo --version`)? The Spin SDK needs Rust 1.91 or above.
699
694
700
695
If you would like to know what build command Spin runs for a component, you can find it in the manifest, in the `component.(id).build` section:
701
696
@@ -759,7 +754,7 @@ You can always run this command manually; `spin build` is a shortcut.
759
754
760
755
As a standard practice for Python, create and activate a virtual env:
761
756
762
-
If you are on a Mac/linux based operating system use the following commands:
757
+
If you are on a Mac/Linux based operating system use the following commands:
763
758
764
759
```bash
765
760
$ python3 -m venv venv
@@ -877,7 +872,7 @@ content-type: text/plain
877
872
content-length: 14
878
873
date = "2023-11-04T00:00:01Z"
879
874
880
-
Hello, Fermyon
875
+
Hello, Spin
881
876
```
882
877
883
878
> The `curl` output may vary based on which language SDK you use.
@@ -886,65 +881,8 @@ You'll also see any logging (stdout/stderr) from the generated code printed to t
886
881
887
882
Congratulations! You just created, built and ran your first Spin application!
888
883
889
-
## Deploy Your Application to Fermyon Cloud
890
-
891
-
`spin up` runs your application locally. Now it's time to put it on the Web via [Fermyon Cloud](https://cloud.fermyon.com).
892
-
893
-
> Fermyon Cloud's Starter tier is free, and doesn't require you to enter any kind of payment instrument. You only need a [GitHub account](https://docs.github.com/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/remembering-your-github-username-or-email).
894
-
895
-
### Log in to Fermyon Cloud
896
-
897
-
Before deploying your application to Fermyon Cloud, you have to log in, using the `spin login` command. This generates a code to authorize your current device against the Fermyon Cloud, and prints a link that will take you to where you enter the code. (You will need to be logged into your GitHub account; if you're not, it will prompt you to log in.) Follow the instructions in the prompt to complete the authorization process.
898
-
899
-
`spin login` prints a confirmation message when authorization completes:
900
-
901
-
<!-- @selectiveCpy -->
902
-
903
-
```bash
904
-
$ spin login
905
-
906
-
Copy your one-time code:
907
-
908
-
XXXXXXXX
909
-
910
-
...and open the authorization page in your browser:
911
-
912
-
https://cloud.fermyon.com/device-authorization
913
-
914
-
Waiting for device authorization...
915
-
Device authorized!
916
-
```
917
-
918
-
### Deploy the Application
919
-
920
-
Now let's deploy the application:
921
-
922
-
<!-- @selectiveCpy -->
923
-
924
-
```bash
925
-
$ spin deploy
926
-
```
927
-
928
-
The deployment process prints progress information as your application uploads and is rolled out to the cloud:
929
-
930
-
<!-- @nocpy -->
931
-
932
-
```console
933
-
Uploading hello_typescript version 0.1.0+XXXXXXXX to Fermyon Cloud...
You can Ctrl+Click on the link in the terminal to visit the web application you just deployed.
941
-
942
-
> In the example output above, `hello_typescript` is a placeholder for your application name - you'll see whatever you entered as the application name when you ran `spin new` earlier. The `XXXXXXXX` fragment is randomly generated to make a unique URL.
943
-
944
-
Congratulations again - you've now deployed your first Spin application to [Fermyon Cloud](https://cloud.fermyon.com)!
945
-
946
884
## Next Steps
947
885
948
886
- Learn more about [writing Spin components and manifests](writing-apps)
949
887
- Learn how to [build your Spin application code](build)
950
-
- Learn more about [Fermyon Cloud](https://developer.fermyon.com/cloud)
888
+
- Learn how to [deploy your application to a cloud host](deploying)
0 commit comments