-
Is there any guide or even possible to deploy on:
I have already read this documentation. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
Deployment instructions are going to be based on your chosen backend. For example, if you use the Flask or Django backend and want to deploy via Azure, a tutorial like this would describe the process: |
Beta Was this translation helpful? Give feedback.
-
I did try the fastapi in deta-space (not a reactpy) from this guide. It worked. Then I tried the reactpy sample code for fastapi or the code below. main.py from reactpy import component, html
from reactpy.backend.fastapi import configure
from fastapi import FastAPI # missing in official sample code.
@component
def HelloWorld():
return html.h1("Hello, world!")
app = FastAPI()
configure(app, HelloWorld) But I got nothing. There was no The project myreactpy log in deta-space does not indicate any errors. And this is my Spacefile for deta-space. Typical for fastapi use.
|
Beta Was this translation helpful? Give feedback.
-
I can't register in azure at the moment. I will try gcp instead as I already have an account on it. |
Beta Was this translation helpful? Give feedback.
-
The interactive examples in the docs are backed by Heroku: |
Beta Was this translation helpful? Give feedback.
-
I tried GCP, fastapi worked, but reactpy on fastapi backend did not work. |
Beta Was this translation helpful? Give feedback.
-
This is what I have tried so far and they worked. Deploy for productionGCP (Google Cloud Platform)
|
Beta Was this translation helpful? Give feedback.
-
I also found you can deploy reactpy using a docker image. It works for platforms that don't support websockets. |
Beta Was this translation helpful? Give feedback.
This is what I have tried so far and they worked.
Deploy for production
GCP (Google Cloud Platform)
See rflask
See gcp-reactpy-fastapi